cri_models.models.criserviceaccount module

class cri_models.models.criserviceaccount.CRIServiceAccount(password, last_login, is_superuser, email, is_staff, is_active, date_joined, username, first_name, last_name, legal_first_name, legal_last_name, uid, primary_group, birthdate, phone, old_account, ldap_dn, primary_principal, nickname, callsign, criuser_ptr, owner)[source]

Bases: cri_models.models.criuser.CRIUser

exception DoesNotExist

Bases: cri_models.models.criuser.CRIUser.DoesNotExist

exception MultipleObjectsReturned

Bases: cri_models.models.criuser.CRIUser.MultipleObjectsReturned

class SyncMeta[source]

Bases: object

sync_adapters = ()
criuser_ptr

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.

criuser_ptr_id
get_managers()[source]
is_auth_allowed()[source]
owner

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.

owner_id
refresh_from_db(*args, **kwargs)[source]

Reload field values from the database.

By default, the reloading happens from the database this instance was loaded from, or by the read router if this instance wasn’t loaded from any database. The using parameter will override the default.

Fields can be used to specify which fields to reload. The fields should be an iterable of field attnames. If fields is None, then all non-deferred fields are reloaded.

When accessing deferred fields of an instance, the deferred loading of the field will call this method.

sync(*args, **kwargs)[source]