__name__ attributes of actions defined in <class 'astromatchapp.report.admin.user.ReportUserAdmin'> must be unique

Viewed 1215
ERRORS:
<class 'astromatchapp.report.admin.user.ReportUserAdmin'>: (admin.E130) __name__ attributes of actions defined in <class 'astromatchapp.report.admin.user.ReportUserAdmin'> must be unique.
<class 'astromatchapp.web.admin.user.UserAdmin'>: (admin.E130) __name__ attributes of actions defined in <class 'astromatchapp.web.admin.user.UserAdmin'> must be unique.
?: (urls.E007) The custom handler404 view 'astromatchapp.web.views.http_error.handler404' does not take the correct number of arguments (request, exception).

After migrate to my manage.py this error has been generated.

2 Answers

Seems this is broken in Django 2.2.

Ticket 29917 discussed this (with mixed opinions) and although it is marked as fixed, the issue remains.

My observation shows that nothing is broken in actual functional code (actions do work and are not collected twice on inherited ModelAdmin classes). It's just that noisy warning that's trying to be too smart.

You can simply disable it by adding this to your settings:

SILENCED_SYSTEM_CHECKS = ['admin.E130']

Related