intranet.apps.feedback package

Submodules

intranet.apps.feedback.admin module

class intranet.apps.feedback.admin.FeedbackAdmin(model, admin_site)[source]

Bases: ModelAdmin

list_display = ('user', 'date', 'comments')
ordering = ('-date',)
raw_id_fields = ('user',)

intranet.apps.feedback.forms module

class intranet.apps.feedback.forms.FeedbackForm(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, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: Form

A form for sending comments to the Intranet team.

declared_fields = {'comments': <django.forms.fields.CharField object>}

intranet.apps.feedback.models module

class intranet.apps.feedback.models.Feedback(id, user, comments, date)[source]

Bases: Model

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

comments

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

date

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_date(*, field=<django.db.models.fields.DateTimeField: date>, is_next=True, **kwargs)
get_previous_by_date(*, field=<django.db.models.fields.DateTimeField: date>, 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.

objects = <django.db.models.manager.Manager object>
user

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.

user_id

intranet.apps.feedback.tests module

class intranet.apps.feedback.tests.FeedbackTest(methodName='runTest')[source]

Bases: IonTestCase

test_send_feedback_unauthenticated()[source]
test_send_feedback_view()[source]

intranet.apps.feedback.urls module

intranet.apps.feedback.views module

intranet.apps.feedback.views.send_feedback_email(request, data)[source]
intranet.apps.feedback.views.send_feedback_view(request)[source]

Module contents