elgeopaso.accounts.models module

class elgeopaso.accounts.models.Subscription(id, user, report_hour, report_week)[source]

Bases : django.db.models.base.Model

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.MultipleObjectsReturned

id

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>
report_hour

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

report_week

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

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.