Tuesday, October 7, 2014

django UserAdmin

Hi,

I added an extra field phone number in existiing user model and now I tyring to access that field by below method,

 UserAdmin.list_display = ('email', 'first_name', 'last_name','is_staff', SMSRegistration.phone_no)

type object 'SMSRegistration' has no attribute 'phone_no'

Please help.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1f3b93e4-8764-475e-99f6-24873af5dc83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment