mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
deny methods for queryset copy
This commit is contained in:
parent
f85e59c5d0
commit
e9e57e096f
1 changed files with 2 additions and 1 deletions
|
|
@ -118,7 +118,8 @@ class PassThroughManager(models.Manager):
|
|||
|
||||
"""
|
||||
# pickling causes recursion errors
|
||||
_deny_methods = ['__getstate__', '__setstate__', '_db']
|
||||
_deny_methods = ['__getstate__', '__setstate__', '__getinitargs__',
|
||||
'__getnewargs__', '__copy__', '__deepcopy__', '_db']
|
||||
|
||||
def __init__(self, queryset_cls=None):
|
||||
self._queryset_cls = queryset_cls
|
||||
|
|
|
|||
Loading…
Reference in a new issue