0

I keep getting this error when Installing Jet Theme in an environment which uses currently admin_tools. Any idea how to solve it? What do I need to add in Models? All I try with ForeignKeys and related_name ends up in another error.

python manage.py makemigrations apfm SystemCheckError: System check identified some issues:

ERRORS: apfm.Bookmark: (models.E015) 'ordering' refers to the nonexistent field, related field, or lookup 'added'. jet.Bookmark.user: (fields.E304) Reverse accessor 'User.bookmark_set' for 'jet.Bookmark.user' clashes with reverse accessor for 'menu.Bookmark.user'. HINT: Add or change a related_name argument to the definition for 'jet.Bookmark.user' or 'menu.Bookmark.user'. menu.Bookmark.user: (fields.E304) Reverse accessor 'User.bookmark_set' for 'menu.Bookmark.user' clashes with reverse accessor for 'jet.Bookmark.user'. HINT: Add or change a related_name argument to the definition for 'menu.Bookmark.user' or 'jet.Bookmark.user'.

I have tried to give the 'jet.Bookmark.user' and 'menu.Bookmark.user' a related_name using ForeignKeys in models.py but I cannot make it work.

Bas H
  • 2,114
  • 10
  • 14
  • 23

0 Answers0