Nuno_147
Nuno_147

Reputation: 2913

Adding TabularInline to the User model in django

I would like to add a TabularInline model in the admin to the User model.

How should I do such a thing ? because I am not respnsible for the registration ?

Can I add inlines to User model ? can I re-register it ?

Upvotes: 1

Views: 104

Answers (1)

Hedde van der Heide
Hedde van der Heide

Reputation: 22449

You can unregister any Model object and re-register it with your custom demands

admin.site.unregister(User)
admin.site.register(User, YourCustomAdmin)

Upvotes: 2

Related Questions