router package

Submodules

router.admin module

class router.admin.SepaRouteAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

list_display = ('external_key', 'bic', 'reachable_via', 'reachability_type', 'intermediary_bic')
list_filter = ('scheme', 'reachable_via', 'reachability_type')
property media

router.apps module

class router.apps.RouterConfig(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

name = 'router'

router.forms module

class router.forms.SepaRouteForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ('scheme', 'external_key', 'bic', 'psp_name', 'psp_city', 'psp_country', 'reachable_via', 'reachability_type', 'intermediary_bic', 'preferred_route', 'valid_from', 'valid_to')
model

alias of router.models.SepaRoute

base_fields = {'bic': <localflavor.generic.forms.BICFormField object>, 'external_key': <django.forms.fields.CharField object>, 'intermediary_bic': <localflavor.generic.forms.BICFormField object>, 'preferred_route': <django.forms.fields.BooleanField object>, 'psp_city': <django.forms.fields.CharField object>, 'psp_country': <django_countries.fields.LazyTypedChoiceField object>, 'psp_name': <django.forms.fields.CharField object>, 'reachability_type': <django.forms.fields.TypedChoiceField object>, 'reachable_via': <django.forms.fields.TypedChoiceField object>, 'scheme': <django.forms.fields.TypedChoiceField object>, 'valid_from': <django.forms.fields.DateTimeField object>, 'valid_to': <django.forms.fields.DateTimeField object>}
declared_fields = {}
property media

Return all media required to render the widgets on this form.

router.models module

class router.models.SepaRoute(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Represent an available route to a SEPA destination.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

class ReachabilityChoice(value)[source]

Bases: django.db.models.enums.TextChoices

An enumeration.

DIRECT = 'direct'
INDIRECT = 'indirect'
UNKNOWN = 'unknown'
bic

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

external_key

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

get_psp_country_display(*, field=<django_countries.fields.CountryField: psp_country>)
get_reachability_type_display(*, field=<django.db.models.fields.CharField: reachability_type>)
get_reachable_via_display(*, field=<django.db.models.fields.CharField: reachable_via>)
get_scheme_display(*, field=<django.db.models.fields.CharField: scheme>)
id

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

intermediary_bic

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>
preferred_route

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

psp_city

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

psp_country

A descriptor for country fields on a model instance. Returns a Country when accessed so you can do things like:

>>> from people import Person
>>> person = Person.object.get(name='Chris')

>>> person.country.name
'New Zealand'

>>> person.country.flag
'/static/flags/nz.gif'
psp_name

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

reachability_type

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

reachable_via

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

scheme

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

uuid

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

valid_from

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

valid_to

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