mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-04-11 23:30:58 +00:00
Merge pull request #19 from DXist/master
Extra deny methods for PassThroughManager
This commit is contained in:
commit
ec1870c98a
1 changed files with 2 additions and 1 deletions
|
|
@ -126,7 +126,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