intranet.apps.preferences package¶
Submodules¶
intranet.apps.preferences.fields module¶
- class intranet.apps.preferences.fields.PhoneField(*args, **kwargs)[source]¶
Bases:
Field
Model field for a phone number
intranet.apps.preferences.forms module¶
- class intranet.apps.preferences.forms.BusRouteForm(*args, **kwargs)[source]¶
Bases:
Form
- declared_fields = {}¶
- class intranet.apps.preferences.forms.DarkModeForm(user, *args, **kwargs)[source]¶
Bases:
Form
- declared_fields = {}¶
- class intranet.apps.preferences.forms.EmailForm(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:
ModelForm
- declared_fields = {}¶
- class intranet.apps.preferences.forms.NotificationOptionsForm(user, *args, **kwargs)[source]¶
Bases:
Form
- declared_fields = {}¶
- class intranet.apps.preferences.forms.PhoneForm(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:
ModelForm
Represents a phone number (number + purpose)
- declared_fields = {'_number': <django.forms.fields.CharField object>}¶
- class intranet.apps.preferences.forms.PreferredPictureForm(user, *args, **kwargs)[source]¶
Bases:
Form
- declared_fields = {}¶
- class intranet.apps.preferences.forms.PrivacyOptionsForm(user, *args, **kwargs)[source]¶
Bases:
Form
- declared_fields = {}¶
- class intranet.apps.preferences.forms.WebsiteForm(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:
ModelForm
- declared_fields = {}¶
intranet.apps.preferences.tests module¶
- class intranet.apps.preferences.tests.PreferencesFormTest(methodName='runTest')[source]¶
Bases:
IonTestCase
- class intranet.apps.preferences.tests.PreferencesTest(methodName='runTest')[source]¶
Bases:
IonTestCase
intranet.apps.preferences.urls module¶
intranet.apps.preferences.views module¶
- intranet.apps.preferences.views.get_bus_route(user)[source]¶
Get a user’s bus route to pass as an initial value to a BusRouteForm.
- intranet.apps.preferences.views.get_notification_options(user)[source]¶
Get a user’s notification options to pass as an initial value to a NotificationOptionsForm.
- intranet.apps.preferences.views.get_personal_info(user)[source]¶
Get a user’s personal info attributes to pass as an initial value to a PersonalInformationForm.
- intranet.apps.preferences.views.get_preferred_pic(user)[source]¶
Get a user’s preferred picture attributes to pass as an initial value to a PreferredPictureForm.
- intranet.apps.preferences.views.get_privacy_options(user)[source]¶
Get a user’s privacy options to pass as an initial value to a PrivacyOptionsForm.
- intranet.apps.preferences.views.logger = <Logger intranet.apps.preferences.views (DEBUG)>¶
Phone and website information have been disabled because of privacy reasons.
- Type:
NOTE
- intranet.apps.preferences.views.preferences_view(request)[source]¶
View and process updates to the preferences page.