Akvo RSR
  • Components
  • Reference documentation
    • Database Schema
    • Module Index
      • akvo package
        • Subpackages
        • Submodules
  • RSR Docker Development Environment
  • Deploying
Akvo RSR
  • Reference documentation
  • akvo package
  • akvo.rsr package
  • akvo.rsr.models package
  • akvo.rsr.models.link module
  • View page source

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

project_id
show_link()[source]
url

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

Previous Next

© Copyright 2023, Akvo Foundation.

Built with Sphinx using a theme provided by Read the Docs.