Organizations
This package contains all data models related to organizations:
Contact,
Location and
Organization.
Contact
- class integreat_compass.cms.models.organizations.contact.Contact(*args, **kwargs)
Bases:
AbstractBaseModelData model representing an Offer Contact.
- Parameters:
id (BigAutoField) – Primary key: ID
name (CharField) – Name. Name of the responsible contact person
email (EmailField) – Email. Email address of the responsible contact person
phone (CharField) – Phone number. Phone numbner of the responsible contact person
Relationship fields:
- Parameters:
creator (
ForeignKeytoUser) – Creator (related name:offer_contact)
Reverse relationships:
- Parameters:
offer (Reverse
ForeignKeyfromOffer) – All offers of this offer contact (related name ofoffer_contact)
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- creator
Type:
ForeignKeytoUserCreator (related name:
offer_contact)
- email
Type:
EmailFieldEmail. Email address of the responsible contact person
- get_repr()
This overwrites the default Django
__repr__()method which would return<Contact: Contact object (id)>. It is used for logging.- Returns:
The canonical string representation of the page
- Return type:
- id
Type:
BigAutoFieldPrimary key: ID
- objects = <django.db.models.Manager object>
- offer_set
Type: Reverse
ForeignKeyfromOfferAll offers of this offer contact (related name of
offer_contact)
Location
- class integreat_compass.cms.models.organizations.location.Location(*args, **kwargs)
Bases:
AbstractBaseModelData model representing a Location.
- Parameters:
id (BigAutoField) – Primary key: ID
address (TextField) – Address. Physical location where the offer takes place
lat (DecimalField) – Latitude
long (DecimalField) – Longitude
Reverse relationships:
- Parameters:
offer (Reverse
ForeignKeyfromOffer) – All offers of this location (related name oflocation)
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- get_repr()
This overwrites the default Django
__repr__()method which would return<Location: Location object (id)>. It is used for logging.- Returns:
The canonical string representation of the page
- Return type:
- id
Type:
BigAutoFieldPrimary key: ID
- lat
Type:
DecimalFieldLatitude
- long
Type:
DecimalFieldLongitude
- objects = <django.db.models.Manager object>
- offer_set
Type: Reverse
ForeignKeyfromOfferAll offers of this location (related name of
location)
Organization
- class integreat_compass.cms.models.organizations.organization.Organization(*args, **kwargs)
Bases:
AbstractBaseModelData model representing an Organization (Offer Provider).
- Parameters:
id (BigAutoField) – Primary key: ID
name (CharField) – Organization name. Name of the organization
web_address (URLField) – Website. URL of the website or social media of the organization
Relationship fields:
- Parameters:
creator (
ForeignKeytoUser) – Creator (related name:organization)
Reverse relationships:
- Parameters:
offer (Reverse
ForeignKeyfromOffer) – All offers of this organization (related name oforganization)
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- creator
Type:
ForeignKeytoUserCreator (related name:
organization)
- get_repr()
This overwrites the default Django
__repr__()method which would return<Organization: Organization object (id)>. It is used for logging.- Returns:
The canonical string representation of the page
- Return type:
- id
Type:
BigAutoFieldPrimary key: ID
- objects = <django.db.models.Manager object>
- offer_set
Type: Reverse
ForeignKeyfromOfferAll offers of this organization (related name of
organization)