partners package¶
Submodules¶
partners.admin module¶
-
class
partners.admin.PartnerAdmin(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdminClass to show partners in the admin.
-
fieldsets= ((None, {'fields': ('name', 'slug', 'link', 'company_profile', 'logo', 'site_header', 'is_active', 'is_main_partner', 'is_local_partner')}), ('Address', {'fields': ('address', 'address2', 'zip_code', 'city', 'country')}))¶
-
inlines= (<class 'partners.admin.PartnerImageInline'>,)¶
-
list_display= ('name', 'is_active', 'is_main_partner', 'is_local_partner')¶
-
list_filter= ('is_active',)¶
-
property
media¶
-
prepopulated_fields= {'slug': ('name',)}¶
-
search_fields= ('name', 'city')¶
-
-
class
partners.admin.PartnerEventAdmin(model, admin_site)[source]¶ Bases:
utils.translation.TranslatedModelAdminClass to show partner events in the admin.
-
exclude= None¶
-
fields= ('partner', 'other_partner', 'title_en', 'description_en', 'location_en', 'start', 'end', 'url', 'published')¶
-
list_display= ('title', 'start', 'end', 'partner', 'published')¶
-
list_filter= ('start', 'published')¶
-
property
media¶
-
search_fields= ('title_en', 'partner__name')¶
-
-
class
partners.admin.PartnerImageInline(parent_model, admin_site)[source]¶ Bases:
django.contrib.admin.options.StackedInlineClass to show partner images inline in the admin.
-
property
media¶
-
model¶ alias of
partners.models.PartnerImage
-
property
-
class
partners.admin.VacancyAdmin(model, admin_site)[source]¶ Bases:
django.contrib.admin.options.ModelAdminClass to show vacancies in the admin.
-
fieldsets= ((None, {'fields': ('title', 'description', 'link')}), ('Existing partner', {'fields': ('partner',)}), ('Other partner', {'fields': ('company_name', 'company_logo')}), ('Categories', {'fields': ('categories',)}))¶
-
list_display= ('title', 'partner', 'company_name')¶
-
property
media¶
-
search_fields= ('title', 'partner__name', 'company_name')¶
-
partners.apps module¶
partners.models module¶
-
class
partners.models.Partner(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelModel describing partner.
-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
address¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
address2¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
city¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
company_profile¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
country¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
events¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
get_country_display(*, field=<django.db.models.fields.CharField: country>)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
images¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
is_active¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
is_local_partner¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
is_main_partner¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
link¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
logo¶ Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.
-
name¶ 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>¶
-
site_header¶ Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.
-
slug¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
vacancy_set¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
zip_code¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
partners.models.PartnerEvent(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelModel describing partner event.
-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
property
description¶ Accessor that fetches the localized variant of description
-
description_en¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
end¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_next_by_end(*, field=<django.db.models.fields.DateTimeField: end>, is_next=True, **kwargs)¶
-
get_next_by_start(*, field=<django.db.models.fields.DateTimeField: start>, is_next=True, **kwargs)¶
-
get_previous_by_end(*, field=<django.db.models.fields.DateTimeField: end>, is_next=False, **kwargs)¶
-
get_previous_by_start(*, field=<django.db.models.fields.DateTimeField: start>, is_next=False, **kwargs)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
property
location¶ Accessor that fetches the localized variant of location
-
location_en¶ 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>¶
-
other_partner¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
partner¶ 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.parentis aForwardManyToOneDescriptorinstance.
-
partner_id¶
-
published¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
start¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
property
title¶ Accessor that fetches the localized variant of title
-
title_en¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
url¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
partners.models.PartnerImage(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelModel to save partner image.
-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
image¶ Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.
-
objects= <django.db.models.manager.Manager object>¶
-
partner¶ 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.parentis aForwardManyToOneDescriptorinstance.
-
partner_id¶
-
exception
-
class
partners.models.Vacancy(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelModel describing vacancies.
-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
categories¶ Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
company_logo¶ Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.
-
company_name¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
description¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
link¶ 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>¶
-
partner¶ 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.parentis aForwardManyToOneDescriptorinstance.
-
partner_id¶
-
title¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
partners.models.VacancyCategory(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelModel describing vacancy categories.
-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
property
name¶ Accessor that fetches the localized variant of name
-
name_en¶ 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>¶
-
slug¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
vacancy_set¶ Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
exception
partners.sitemaps module¶
-
class
partners.sitemaps.PartnerSitemap[source]¶ Bases:
django.contrib.sitemaps.SitemapSitemap generator for partners.
-
class
partners.sitemaps.StaticViewSitemap[source]¶ Bases:
django.contrib.sitemaps.SitemapSitemap generator for static partner views.
-
changefreq= 'daily'¶
-