Added get{,_or_create} docs
This commit is contained in:
parent
ffc9d7b152
commit
e05d31eaaf
3 changed files with 42 additions and 5 deletions
|
|
@ -10,6 +10,7 @@ __all__ = ['queryset_manager', 'Q', 'InvalidQueryError',
|
|||
# The maximum number of items to display in a QuerySet.__repr__
|
||||
REPR_OUTPUT_SIZE = 20
|
||||
|
||||
|
||||
class DoesNotExist(Exception):
|
||||
pass
|
||||
|
||||
|
|
@ -21,14 +22,10 @@ class MultipleObjectsReturned(Exception):
|
|||
class InvalidQueryError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class OperationError(Exception):
|
||||
pass
|
||||
|
||||
class MultipleObjectsReturned(Exception):
|
||||
pass
|
||||
|
||||
class DoesNotExist(Exception):
|
||||
pass
|
||||
|
||||
class Q(object):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue