46👍
✅
Like the error says, the admin class for User by default orders by username. Since you don’t have a username, you should override that:
class CustomUserAdmin(BaseUserAdmin):
...
ordering = ('email',)
- Python 2 -> 3 Django migration causes field parameter type change
- How does a python web server overcomes GIL
- Django queryset: Exclude list of emails using endswith
- Sphinx and re-usable Django apps
- Django subclassing multiwidget – reconstructing date on post using custom multiwidget
Source:stackexchange.com