pomodorr.user_settings package

Submodules

pomodorr.user_settings.admin module

class pomodorr.user_settings.admin.UserSettingAdmin(model, admin_site)

Bases: django.contrib.admin.options.ModelAdmin

property media

pomodorr.user_settings.apps module

class pomodorr.user_settings.apps.UserSettingsConfig(app_name, app_module)

Bases: django.apps.config.AppConfig

name = 'pomodorr.user_settings'
verbose_name = 'User Settings'

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 a ForwardOneToOneDescriptor instance.

user_id

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

class Meta

Bases: object

fields = ('pomodoro_length', 'short_break_length', 'long_break_length', 'long_break_after', 'auto_pomodoro_start', 'auto_break_start', 'disable_breaks')
model

alias of pomodorr.user_settings.models.UserSetting

Module contents