Added to TypedObject's get() manager method, since without it, Q-objects didn't work correctly.
This commit is contained in:
parent
c7b26ff6a6
commit
f87d07b775
2 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue