generator package

Subpackages

Submodules

generator.admin module

generator.apps module

class generator.apps.GeneratorConfig(app_name, app_module)

Bases: AppConfig

default_auto_field = 'django.db.models.BigAutoField'
name = 'generator'

generator.models module

class generator.models.Prototype(id, name, description, system, metadata, database_hash)

Bases: Model

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

database_hash

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.

metadata

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

name

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

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.

system_id

generator.tests module

class generator.tests.PrototypeAPITests(methodName='runTest')

Bases: APITestCase

setUp()

Hook method for setting up the test fixture before exercising it.

test_list_all_prototypes()
test_list_prototypes_by_system()
test_list_prototypes_empty_system()

generator.views module

Module contents