Skip to content

AbstractVUEDAUser ​

Overview ​

Default user for VUEDA

Verses django default, it features:

  • row level permissions, via Meta.row_level_permissions.check_instance, see BaseRowLevelPermissions
  • workflow state permissions
  • email as the unique identifier
  • email as a case-insensitive unique field
  • name as a required field
  • name as a single field, instead of first_name and last_name
  • is_system flag

Meta ​

Shared Meta options for all VUEDA user models: ordering, GIN indexes, and extra permissions.

Source ​

server/vueda/user/models.py:113

date_joined ​

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

Signature ​

date_joined(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

email ​

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

Signature ​

email(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

formatted_name ​

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

Signature ​

formatted_name(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

generate_reset_url ​

Generates a password reset URL for the given user.

Signature ​

generate_reset_url(self)

Parameters ​

NameTypeRequiredDefaultDescription
selfyes

Source ​

server/vueda/user/models.py:131

get_next_by_date_joined ​

Method descriptor with partial application of the given arguments and keywords.

Supports wrapping existing descriptors and handles non-descriptor callables as instance methods.

Signature ​

get_next_by_date_joined(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

get_previous_by_date_joined ​

Method descriptor with partial application of the given arguments and keywords.

Supports wrapping existing descriptors and handles non-descriptor callables as instance methods.

Signature ​

get_previous_by_date_joined(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

is_active ​

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

Signature ​

is_active(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

is_superuser ​

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

Signature ​

is_superuser(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

is_system ​

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

Signature ​

is_system(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

last_login ​

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

Signature ​

last_login(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

name ​

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

Signature ​

name(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

objects ​

Signature ​

objects(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

password ​

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

Signature ​

password(unknown)

Parameters ​

NameTypeRequiredDefaultDescription
unknownyes

send_welcome_email ​

Send a welcome email with a password-reset link to the user's email address.

Signature ​

send_welcome_email(self)

Parameters ​

NameTypeRequiredDefaultDescription
selfyes

Source ​

server/vueda/user/models.py:119

EMAIL_FIELD ​

REQUIRED_FIELDS ​

USERNAME_FIELD ​

groups ​

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example::

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

user_permissions ​

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example::

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

Source ​

server/vueda/user/models.py:78