intranet.apps.lostfound package

Submodules

intranet.apps.lostfound.admin module

class intranet.apps.lostfound.admin.FoundItemAdmin(model, admin_site)[source]

Bases: ModelAdmin

list_display = ('title', 'description', 'user', 'found', 'added')
list_filter = ('added', 'found')
ordering = ('-added',)
raw_id_fields = ('user',)
class intranet.apps.lostfound.admin.LostItemAdmin(model, admin_site)[source]

Bases: ModelAdmin

list_display = ('title', 'description', 'user', 'last_seen', 'added')
list_filter = ('added', 'last_seen')
ordering = ('-added',)
raw_id_fields = ('user',)

intranet.apps.lostfound.apps module

class intranet.apps.lostfound.apps.LostfoundConfig(app_name, app_module)[source]

Bases: AppConfig

name = 'intranet.apps.lostfound'

intranet.apps.lostfound.forms module

class intranet.apps.lostfound.forms.FoundItemForm(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

class Meta[source]

Bases: object

fields = ['title', 'description', 'found', 'retrieved']
model

alias of FoundItem

declared_fields = {}
class intranet.apps.lostfound.forms.LostItemForm(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

class Meta[source]

Bases: object

fields = ['title', 'description', 'last_seen', 'found']
model

alias of LostItem

declared_fields = {}

intranet.apps.lostfound.models module

class intranet.apps.lostfound.models.FoundItem(id, user, title, description, found, added, retrieved)[source]

Bases: Model

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

added

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.

found

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_added(*, field=<django.db.models.fields.DateTimeField: added>, is_next=True, **kwargs)
get_next_by_found(*, field=<django.db.models.fields.DateField: found>, is_next=True, **kwargs)
get_previous_by_added(*, field=<django.db.models.fields.DateTimeField: added>, is_next=False, **kwargs)
get_previous_by_found(*, field=<django.db.models.fields.DateField: found>, 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>
retrieved

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

title

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

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
class intranet.apps.lostfound.models.LostItem(id, user, title, description, last_seen, added, found)[source]

Bases: Model

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

added

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.

found

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_added(*, field=<django.db.models.fields.DateTimeField: added>, is_next=True, **kwargs)
get_next_by_last_seen(*, field=<django.db.models.fields.DateField: last_seen>, is_next=True, **kwargs)
get_previous_by_added(*, field=<django.db.models.fields.DateTimeField: added>, is_next=False, **kwargs)
get_previous_by_last_seen(*, field=<django.db.models.fields.DateField: last_seen>, 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.

last_seen

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

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

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.lostfound.tests module

class intranet.apps.lostfound.tests.LostFoundTestCase(methodName='runTest')[source]

Bases: IonTestCase

test_founditem_add_view()[source]
test_founditem_delete_view()[source]
test_founditem_modify_view()[source]
test_founditem_view()[source]
test_home_view()[source]
test_lostitem_add_view()[source]
test_lostitem_delete_view()[source]
test_lostitem_modify_view()[source]
test_lostitem_view()[source]

intranet.apps.lostfound.urls module

intranet.apps.lostfound.views module

Module contents