0

I had to show many to many fields on admin pages of both models that had a many to many relationship and I used this approach which worked perfectly.

I had to show a field of tags while adding/editing user. The field was added, but I lost the functionality of password hashing. So now, I've to use UserAdmin as suggested here

Actually, I'm trying this:

class CustomUserAdmin(UserAdmin):
    form = UserForm

which is not working with the existing form i.e. the tags field is not displayed at all. What I need to change?

Community
  • 1
  • 1
wasimbhalli
  • 4,798
  • 8
  • 42
  • 61

1 Answers1

1

Try to create inlines. Inlines let you show and customize related object in admin panel.

Ari
  • 3,103
  • 1
  • 25
  • 48