Changes between Initial Version and Version 1 of Ticket #12203, comment 28


Ignore:
Timestamp:
Feb 4, 2025, 12:29:13 PM (9 days ago)
Author:
hyperstown

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12203, comment 28

    initial v1  
    3939                User.user_permissions.through._meta.auto_created = True  # pylint: disable=protected-access
    4040                User.groups.through._meta.auto_created = True  # pylint: disable=protected-access
    41                 return super()._check_field_spec_item(obj, field_name, label)
     41                result = super()._check_field_spec_item(obj, field_name, label)
     42                User.user_permissions.through._meta.auto_created = False  # pylint: disable=protected-access
     43                User.groups.through._meta.auto_created = False  # pylint: disable=protected-access
     44                return result
    4245        return ThroughModelAdminChecks().check(self, **kwargs)
    4346
Back to Top