Updated docstrings for new since and until kwargs

This commit is contained in:
2017-11-20 07:41:04 +01:00
parent 35a51091bf
commit bb110da5a2

View File

@@ -16,7 +16,9 @@ class HanchanManager(models.Manager):
def confirmed_hanchans(self, user=None, since=None, until=None, **filter_args):
""" Return all valid and confirmed Hanchans.
:param user: Only return Hanchans where this user participated.
:param user: Only return Hanchans where this user participated.
:param since: only return Hanchans played since the given datetime
:param until: only return Hanchans played until the given datetime
:param filter_args: To add specific arguments to the Django filter.
:return: QuerySet Object
"""
@@ -35,6 +37,7 @@ class HanchanManager(models.Manager):
gain dan points and make his gamestats availabale.
:param user: Only return Hanchans where this user participated.
:param since: only return Hanchans played since the given datetime
:param filter_args: To add specific arguments to the Django filter.
:return: QuerySet Object
"""
@@ -55,6 +58,7 @@ class HanchanManager(models.Manager):
gain kyū points and make his gamestats availabale.
:param user: Only return Hanchans where this user participated.
:param since: only return Hanchans played since the given datetime
:param filter_args: To add specific arguments to the Django filter.
:return: QuerySet Object
"""
@@ -87,7 +91,7 @@ class HanchanManager(models.Manager):
"""Return all Hanchans where a specific user has participated.
:param user: Return Hanchans where this user participated.
:param since: optional a date value since when you want to hanchans
:param since: only return Hanchans played since the given datetime
:param filter_args: To add specific arguments to the Django filter.
:return: a QuerySet Object
"""