intranet.apps.itemreg package

Submodules

intranet.apps.itemreg.admin module

class intranet.apps.itemreg.admin.CalculatorRegistrationAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

list_display = ('calc_type', 'calc_serial', 'calc_id', 'user', 'added')
list_filter = ('calc_type', 'added')
ordering = ('-added',)
raw_id_fields = ('user',)
class intranet.apps.itemreg.admin.ComputerRegistrationAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

list_display = ('manufacturer', 'model', 'serial', 'description', 'user', 'added')
list_filter = ('added', 'manufacturer')
ordering = ('-added',)
raw_id_fields = ('user',)
class intranet.apps.itemreg.admin.PhoneRegistrationAdmin(model, admin_site)[source]

Bases: django.contrib.admin.options.ModelAdmin

list_display = ('manufacturer', 'model', 'serial', 'description', 'user', 'added')
list_filter = ('added', 'manufacturer')
ordering = ('-added',)
raw_id_fields = ('user',)

intranet.apps.itemreg.apps module

class intranet.apps.itemreg.apps.ItemregConfig(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

name = 'itemreg'

intranet.apps.itemreg.forms module

class intranet.apps.itemreg.forms.CalculatorRegistrationForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ['calc_type', 'calc_serial', 'calc_id']
model

alias of intranet.apps.itemreg.models.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: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ['manufacturer', 'model', 'screen_size', 'serial', 'description']
model

alias of intranet.apps.itemreg.models.ComputerRegistration

declared_fields = {}
class intranet.apps.itemreg.forms.PhoneRegistrationForm(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: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ['manufacturer', 'model', 'serial', 'description']
model

alias of intranet.apps.itemreg.models.PhoneRegistration

declared_fields = {}

intranet.apps.itemreg.models module

class intranet.apps.itemreg.models.CalculatorRegistration(id, user, calc_serial, calc_id, calc_type, added)[source]

Bases: django.db.models.base.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: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.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 a ForwardManyToOneDescriptor instance.

user_id

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

class intranet.apps.itemreg.models.ComputerRegistration(id, user, manufacturer, model, serial, description, screen_size, added)[source]

Bases: django.db.models.base.Model

exception DoesNotExist

Bases: django.core.exceptions.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: django.core.exceptions.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

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 a ForwardManyToOneDescriptor instance.

user_id

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

class intranet.apps.itemreg.models.PhoneRegistration(id, user, manufacturer, model, serial, description, added)[source]

Bases: django.db.models.base.Model

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

MANUF_CHOICES = (('samsung', 'Samsung'), ('apple', 'Apple'), ('motorola', 'Motorola'), ('huawei', 'Huawei'), ('lg', 'LG'), ('xiaomi', 'Xiaomi'), ('zte', 'ZTE'), ('nokia', 'Nokia'), ('other', 'Other'))
exception MultipleObjectsReturned

Bases: django.core.exceptions.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.

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

Returns a description of the phone, formatted as <manufacturer> <model>.

Returns

A nicely formatted description of the phone.

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 a ForwardManyToOneDescriptor instance.

user_id

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

intranet.apps.itemreg.urls module

intranet.apps.itemreg.views module

Module contents