mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-03-16 22:40:26 +00:00
Fix manager detachment
This commit is contained in:
parent
813f349683
commit
841b3b6836
1 changed files with 1 additions and 0 deletions
|
|
@ -137,6 +137,7 @@ class Registry(object):
|
|||
mgr = getattr(self.model_cls, self.config_cls.manager_attr)
|
||||
self.model_cls._meta.local_managers.remove(mgr)
|
||||
self.model_cls._meta._expire_cache()
|
||||
delattr(self.model_cls, self.config_cls.manager_attr)
|
||||
|
||||
if hasattr(self.config_cls, 'old_mgr'):
|
||||
self.config_cls.old_mgr \
|
||||
|
|
|
|||
Loading…
Reference in a new issue