mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Merge pull request #105 from patrys/patch-1
Don't try to access __slots__ during copy()
This commit is contained in:
commit
f19755ae81
1 changed files with 2 additions and 1 deletions
|
|
@ -229,7 +229,8 @@ class PassThroughManagerMixin(object):
|
|||
|
||||
# pickling causes recursion errors
|
||||
_deny_methods = ['__getstate__', '__setstate__', '__getinitargs__',
|
||||
'__getnewargs__', '__copy__', '__deepcopy__', '_db']
|
||||
'__getnewargs__', '__copy__', '__deepcopy__', '_db',
|
||||
'__slots__']
|
||||
|
||||
def __init__(self, queryset_cls=None):
|
||||
self._queryset_cls = queryset_cls
|
||||
|
|
|
|||
Loading…
Reference in a new issue