Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num ClassDef bases body Assign NameStore ListLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str AugAssignAdd AttributeStore NameLoad attr Num Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword NameLoad Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword NameLoad Call NameLoad keyword Num decorator_list decorator_list
N/A N/A Defines the Practice Model for keeping track of practice sessions.

 datetime datetime timedelta django.utils.timezone utc django.db models django.contrib.auth.models User django.contrib.contenttypes.models ContentType django.contrib.contenttypes generic algorithm interval Practice N/A N/A models Model N/A N/A This model saves the learning stats of a user linked to a specific item.

    The Practice model uses the :class:`django.contrib.contenttypes.models.ContentType`
    framework to link it to a generic other object. This way, it can be used to keep track of
    learning progress of any other kind of model.

    Attributes:
     content_type (ForeignKey): PK of the learnable object
     object_id (int): ID of the learnable object
     item (GenericForeignKey): Combines the above.
     started_last_viewing (DateTimeField): Starting time of the most recent learning.
     ended_last_viewing (DateTimeField): Ending time of the most recent learning.
     user (User): The user who is practicing.
     next_practice (DateTimeField): Calculated next time of practice.
     times_practice (int): Number of times the item has been practice by the user.
     easy_factor (float): An arbitrary number roughly representing the difficulty of the item for
      the user.

     N/A content_type N/A N/A models ForeignKey ContentType N/A object_id N/A N/A models PositiveIntegerField N/A item N/A N/A generic GenericForeignKey content_type object_id N/A started_last_viewing N/A N/A models DateTimeField null True blank True auto_now_add True N/A ended_last_viewing N/A N/A models DateTimeField null True blank True auto_now_add True N/A user N/A N/A models ForeignKey User N/A next_practice N/A N/A models DateTimeField auto_now_add True N/A times_practiced N/A N/A models PositiveIntegerField default 0 N/A easy_factor N/A N/A models FloatField default 2.5 Meta N/A N/A N/A ordering N/A next_practice N/A set_next_practice N/A N/A self rating N/A N/A N/A Uses the :func:`tsune.memorize.algorithm.interval` function to calculate next practice.

        Args:
         rating (int): Rating from 0 (most difficult) to 4 (easiest) of difficulty of item.

         N/A N/A self times_practiced 1 N/A N/A minutes ef N/A interval N/A self times_practiced rating N/A self easy_factor N/A N/A self next_practice N/A N/A N/A N/A N/A datetime utcnow replace tzinfo utc N/A timedelta minutes minutes N/A N/A self easy_factor ef N/A delay N/A N/A self N/A N/A N/A Simple delay. Adds 10 minutes to next practice.

         N/A N/A self next_practice N/A N/A N/A N/A N/A datetime utcnow replace tzinfo utc N/A timedelta minutes 10 N/A N/A