cri_models.models.criusercreationrequest module

class cri_models.models.criusercreationrequest.CRIUserCreationRequest(id, username, email, first_name, last_name, uid, primary_group, password, birthdate, phone, old_account, created_user, created_at, created_by)[source]

Bases: django.db.models.base.Model

exception CreationFailed[source]

Bases: RuntimeError

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MissingRequiredField[source]

Bases: cri_models.models.criusercreationrequest.CRIUserCreationRequest.CreationFailed

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

birthdate

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

create(creator=None)[source]
created_at

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

created_by

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.

created_by_id
created_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.

created_user_id
email

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

first_name

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

get_data()[source]
id

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

last_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>
old_account

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

old_account_id
password

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

phone

The descriptor for the phone number attribute on the model instance. Returns a PhoneNumber when accessed so you can do stuff like:

>>> instance.phone_number.as_international

Assigns a phone number object on assignment so you can do:

>>> instance.phone_number = PhoneNumber(...)

or,

>>> instance.phone_number = '+414204242'
primary_group

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.

primary_group_id
uid

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

username

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