Added to TypedObject's get() manager method, since without it, Q-objects didn't work correctly.

This commit is contained in:
Griatch 2015-12-01 12:24:09 +01:00
parent c7b26ff6a6
commit f87d07b775
2 changed files with 6 additions and 3 deletions

View file

@ -507,11 +507,14 @@ class TypeclassManager(TypedObjectManager):
"""
def get(self, **kwargs):
def get(self, *args, **kwargs):
"""
Overload the standard get. This will limit itself to only
return the current typeclass.
Args:
args (any): These are passed on as arguments to the default
django get method.
Kwargs:
kwargs (any): These are passed on as normal arguments
to the default django get method