Skip to content
Advertisement

ImproperlyConfigured: There are duplicate field(s) in PackageAdmin.fieldsets

I have a very simple model :

JavaScript

here is the admin.py :

JavaScript

This implementation give me the following error :

JavaScript

Any idea why ?

If I let the second ‘fields’ empty, I don’t get the error. But if I let the first ‘fields’ empty, I still have this error.

Advertisement

Answer

Björn Kristinsson did solve my issue (see in the comment of the original question)

It’s an odd error for it, but it just might be because your fields tuples aren’t well formed. Try changing them to ('package_name',) and ('package_id',).

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement