I'm starting to port my projects, from a version of Django before NFA.
In the past, I had something like this:
User._meta.admin.list_display = User._meta.admin.list_display + ('is_active',)
User._meta.get_field('is_staff').help_text = u"Select this if you want
this user to be able to log into the Admin site."
User._meta.get_field('is_staff').verbose_name = u"Site Administrator"
It seems that using inheritance in NFA, there should be a better way.
I was able to replace the list_display stuff with:
class MyUserAdmin(UserAdmin):
pass
site.register(User, MyUserAdmin)
That works nicely, but I can't find the "right" way to do the
_meta.get_field() stuff in NFA.
Any thoughts?
Thanks,
Jay P.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---