I'd like to be able to display the superuser and active status of users in the Django admin interface. Is there a good/clean way of doing that? (Alternatively, does anybody think there's a chance of getting code to make this happen in Django itself?)
While looking around, I ran into http://djangosnippets.org/snippets/1650/. It feels a little fragile, and in practice, with my dev server the unregister/register cycle seemed to break if the server tried to do a reload. A perhaps slightly more (?) robust way would seem to be something like: user_admin_list = admin.site._registry[User].list_display if 'is_superuser' not in user_admin_list: user_admin_list.append('is_superuser') if 'is_active' not in user_admin_list: user_admin_list.append('is_active') This is more or less what https://code.djangoproject.com/ticket/9602 suggests, though I feel a little sketchy about going into _registry, and updating the default UserAdmin behind its back... So, I guess, 1) How sketchy should I feel about that second way? 2) Is there a less sketchy way that anyone can recommend? Thanks, Alex -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.