tardis.apps.equipment package¶
Subpackages¶
Submodules¶
tardis.apps.equipment.admin module¶
tardis.apps.equipment.forms module¶
-
class
tardis.apps.equipment.forms.
EquipmentSearchForm
(data=None, files=None, auto_id=u'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)¶ Bases:
django.forms.forms.Form
-
base_fields
= {'description': <django.forms.fields.CharField object at 0x7fbcaf0a9c90>, 'key': <django.forms.fields.CharField object at 0x7fbcaf0a9950>, 'make': <django.forms.fields.CharField object at 0x7fbcaf0a9d10>, 'model': <django.forms.fields.CharField object at 0x7fbcaf0a9b90>, 'serial': <django.forms.fields.CharField object at 0x7fbcaf0a9e50>, 'type': <django.forms.fields.CharField object at 0x7fbcaf0a9c10>}¶
-
declared_fields
= {'description': <django.forms.fields.CharField object at 0x7fbcaf0a9c90>, 'key': <django.forms.fields.CharField object at 0x7fbcaf0a9950>, 'make': <django.forms.fields.CharField object at 0x7fbcaf0a9d10>, 'model': <django.forms.fields.CharField object at 0x7fbcaf0a9b90>, 'serial': <django.forms.fields.CharField object at 0x7fbcaf0a9e50>, 'type': <django.forms.fields.CharField object at 0x7fbcaf0a9c10>}¶
-
media
¶
-
tardis.apps.equipment.models module¶
-
class
tardis.apps.equipment.models.
Equipment
(id, key, description, make, model, type, serial, comm, decomm, url)¶ Bases:
django.db.models.base.Model
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
comm
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
dataset
¶ 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.toppings
andtopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
decomm
¶ 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.
-
key
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
make
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
model
¶ 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>¶
-
serial
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
type
¶ 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
tardis.apps.equipment.tests module¶
tests.py http://docs.djangoproject.com/en/dev/topics/testing/
-
class
tardis.apps.equipment.tests.
EquipmentTestCase
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
-
fixtures
= ['initial_data.json']¶
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
testEquipmentDetail
()¶
-
testEquipmentList
()¶
-
testSearchEquipmentForm
()¶
-
testSearchEquipmentResult
()¶
-
-
tardis.apps.equipment.tests.
suite
()¶
tardis.apps.equipment.urls module¶
tardis.apps.equipment.views module¶
-
tardis.apps.equipment.views.
index
(request)¶
-
tardis.apps.equipment.views.
search
(request)¶
-
tardis.apps.equipment.views.
view_id
(request, object_id)¶
-
tardis.apps.equipment.views.
view_key
(request, object_key)¶