pomodorr.user_settings package¶
Submodules¶
pomodorr.user_settings.admin module¶
pomodorr.user_settings.apps module¶
pomodorr.user_settings.models module¶
-
class
pomodorr.user_settings.models.
UserSetting
(id, pomodoro_length, short_break_length, long_break_length, long_break_after, auto_pomodoro_start, auto_break_start, disable_breaks, user)¶ Bases:
django.db.models.base.Model
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
auto_break_start
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
auto_pomodoro_start
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
disable_breaks
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
long_break_after
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
long_break_length
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects
= <django.db.models.manager.Manager object>¶
-
pomodoro_length
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
short_break_length
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
user
¶ Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is aForwardOneToOneDescriptor
instance.
-
user_id
¶
-
exception
pomodorr.user_settings.serializers module¶
-
class
pomodorr.user_settings.serializers.
UserSettingSerializer
(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)¶ Bases:
rest_framework.serializers.ModelSerializer