intranet.apps.itemreg package¶
Subpackages¶
Submodules¶
intranet.apps.itemreg.admin module¶
- class intranet.apps.itemreg.admin.CalculatorRegistrationAdmin(model, admin_site)[source]¶
Bases:
ModelAdmin
- list_display = ('calc_type', 'calc_serial', 'calc_id', 'user', 'added')¶
- list_filter = ('calc_type', 'added')¶
- ordering = ('-added',)¶
- raw_id_fields = ('user',)¶
intranet.apps.itemreg.apps module¶
intranet.apps.itemreg.forms module¶
- class intranet.apps.itemreg.forms.CalculatorRegistrationForm(*args, **kwargs)[source]¶
Bases:
ModelForm
- class Meta[source]¶
Bases:
object
- fields = ['calc_type', 'calc_serial', 'calc_id']¶
- model¶
alias of
CalculatorRegistration
- declared_fields = {}¶
- class intranet.apps.itemreg.forms.ComputerRegistrationForm(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 = ['manufacturer', 'model', 'screen_size', 'serial', 'description']¶
- model¶
alias of
ComputerRegistration
- declared_fields = {}¶
intranet.apps.itemreg.models module¶
- class intranet.apps.itemreg.models.CalculatorRegistration(id, user, calc_serial, calc_id, calc_type, added)[source]¶
Bases:
Model
- CALC_CHOICES = (('ti83', 'TI-83'), ('ti83p', 'TI-83+'), ('ti84p', 'TI-84+'), ('ti84pse', 'TI-84+ Silver Edition'), ('ti84pcse', 'TI-84+ C Silver Edition'), ('ti84pce', 'TI-84+ CE'), ('ti89', 'TI-89'), ('nspirecx', 'TI-Nspire CX'), ('nspirecas', 'TI-Nspire CAS'), ('otherti', 'Other TI'), ('other', 'Other'))¶
- 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.
- calc_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- calc_serial¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- calc_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_calc_type_display(*, field=<django.db.models.fields.CharField: calc_type>)¶
- get_next_by_added(*, field=<django.db.models.fields.DateTimeField: added>, is_next=True, **kwargs)¶
- get_previous_by_added(*, field=<django.db.models.fields.DateTimeField: added>, 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 aForwardManyToOneDescriptor
instance.
- user_id¶
- class intranet.apps.itemreg.models.ComputerRegistration(id, user, manufacturer, model, serial, description, screen_size, added)[source]¶
Bases:
Model
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- MANUF_CHOICES = (('acer', 'Acer'), ('apple', 'Apple'), ('asus', 'Asus'), ('dell', 'Dell'), ('hp', 'HP'), ('lenovo', 'Lenovo'), ('toshiba', 'Toshiba'), ('ibm', 'IBM'), ('compaq', 'Compaq'), ('fujitsu', 'Fujitsu'), ('vizio', 'Vizio'), ('other', 'Other'))¶
- 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.
- property computer_name: str¶
Returns a description of the computer, formatted as <screen size>” <manufacturer> <model>.
- Returns:
A nicely formatted description of the computer.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_manufacturer_display(*, field=<django.db.models.fields.CharField: manufacturer>)¶
- get_next_by_added(*, field=<django.db.models.fields.DateTimeField: added>, is_next=True, **kwargs)¶
- get_previous_by_added(*, field=<django.db.models.fields.DateTimeField: added>, 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.
- manufacturer¶
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>¶
- screen_size¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- serial¶
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 aForwardManyToOneDescriptor
instance.
- user_id¶
- class intranet.apps.itemreg.models.PhoneRegistration(id, user, manufacturer, model, imei, description, added)[source]¶
Bases:
Model
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- MANUF_CHOICES = (('samsung', 'Samsung'), ('apple', 'Apple'), ('motorola', 'Motorola'), ('huawei', 'Huawei'), ('lg', 'LG'), ('xiaomi', 'Xiaomi'), ('zte', 'ZTE'), ('nokia', 'Nokia'), ('other', 'Other'))¶
- 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.
- get_manufacturer_display(*, field=<django.db.models.fields.CharField: manufacturer>)¶
- get_next_by_added(*, field=<django.db.models.fields.DateTimeField: added>, is_next=True, **kwargs)¶
- get_previous_by_added(*, field=<django.db.models.fields.DateTimeField: added>, 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.
- imei¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- manufacturer¶
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>¶
- property phone_name: str¶
Returns a description of the phone, formatted as <manufacturer> <model>.
- Returns:
A nicely formatted description of the phone.
- 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 aForwardManyToOneDescriptor
instance.
- user_id¶
intranet.apps.itemreg.tests module¶
- class intranet.apps.itemreg.tests.ItemRegTestCase(methodName='runTest')[source]¶
Bases:
IonTestCase
Test cases for the itemreg app.