akvo.rsr.models.publishing_status module
- class akvo.rsr.models.publishing_status.PublishingStatus(*args, **kwargs)[source]
Bases:
Model
Keep track of publishing status.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- PUBLISHING_STATUS = (('unpublished', 'Unpublished'), ('published', 'Published'))
- STATUS_PUBLISHED = 'published'
- STATUS_UNPUBLISHED = 'unpublished'
- get_status_display(*, field=<akvo.rsr.fields.ValidXMLCharField: status>)
- 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>
- project
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.
- project_id
- status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.