akvo.rsr.models.link module
- class akvo.rsr.models.link.Link(id, kind, url, caption, project)[source]
Bases:
Model
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- LINK_AKVOPEDIA = 'A'
- LINK_EXTRNAL = 'E'
- LINK_KINDS = (('A', 'Akvopedia entry'), ('E', 'External link'))
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- caption
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_kind_display(*, field=<akvo.rsr.fields.ValidXMLCharField: kind>)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- kind
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 many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- project_id
- url
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.