User change list filters disappear in newforms-admin if a model has a OneToOneField to User
|Reported by:||Wayne K. Werner||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If I create a test project, with the bare minimum to connect to the default admin site and go to the user change list, the is_staff and is_superuser filters show up fine. If I now add a simple test app, with a single model, and that model has a OneToOneField to auth.User, then the filters do not show up in the admin change list for User.
# this works class TestModel(models.Model): pass # the is staff and is superuser models disappear from the admin class TestModel(models.Model): user = models.OneToOneField(User)