# users package

## Subpackages

## Submodules

## users.admin module

class `users.admin.``BalanceFilter`(request, params, model, model_admin)

  Bases : `django.contrib.admin.filters.SimpleListFilter`

  `lookups`(request, model_admin)

    Must be overridden to return a list of tuples (value, verbose value)

  `parameter_name` = 'solde'
  `queryset`(request, queryset)

    Return the filtered queryset.

  `title` = 'Solde'

class `users.admin.``CotisationHistoryAdmin`(model, admin_site)

  Bases : `simple_history.admin.SimpleHistoryAdmin`

  `list_display` = ('user', 'amount', 'duration', 'paymentDate', 'endDate', 'paymentMethod')
  `list_filter` = ('paymentMethod',)
  `media`
  `ordering` = ('user', 'amount', 'duration', 'paymentDate', 'endDate')
  `search_fields` = ('user',)

class `users.admin.``ProfileAdmin`(model, admin_site)

  Bases : `simple_history.admin.SimpleHistoryAdmin`

  `list_display` = ('user', 'credit', 'debit', 'balance', 'school', 'cotisationEnd', 'is_adherent')
  `list_filter` = ('school', <class 'users.admin.BalanceFilter'>)
  `media`
  `ordering` = ('user', '-credit', '-debit')
  `search_fields` = ('user',)

class `users.admin.``WhiteListHistoryAdmin`(model, admin_site)

  Bases : `simple_history.admin.SimpleHistoryAdmin`

  `list_display` = ('user', 'paymentDate', 'endDate', 'duration')
  `media`
  `ordering` = ('user', 'duration', 'paymentDate', 'endDate')
  `search_fields` = ('user',)

## users.apps module

class `users.apps.``UsersConfig`(app_name, app_module)

  Bases : `django.apps.config.AppConfig`

  `name` = 'users'

## users.forms module

class `users.forms.``CreateGroupForm`(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)

  Bases : `django.forms.models.ModelForm`

  Form to create a new group

  class `Meta`

    Bases : `object`

    `fields` = ('name',)
    `model`

      alias de `django.contrib.auth.models.Group`

  `base_fields` = {'name': <django.forms.fields.CharField object>}
  `declared_fields` = {}
  `media`

class `users.forms.``CreateUserForm`(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)

  Bases : `django.forms.models.ModelForm`

  Form to create a new user

  class `Meta`

    Bases : `object`

    `fields` = ('username', 'last_name', 'first_name', 'email')
    `model`

      alias de `django.contrib.auth.models.User`

  `base_fields` = {'email': <django.forms.fields.EmailField object>, 'first_name': <django.forms.fields.CharField object>, 'last_name': <django.forms.fields.CharField object>, 'school': <django.forms.models.ModelChoiceField object>, 'username': <django.forms.fields.CharField object>}
  `declared_fields` = {'school': <django.forms.models.ModelChoiceField object>}
  `media`

class `users.forms.``EditGroupForm`(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)

  Bases : `django.forms.models.ModelForm`

  Form to edit a group

  class `Meta`

    Bases : `object`

    `fields` = '__all__'
    `model`

      alias de `django.contrib.auth.models.Group`

  `base_fields` = {'name': <django.forms.fields.CharField object>, 'permissions': <django.forms.models.ModelMultipleChoiceField object>}
  `declared_fields` = {}
  `media`

class `users.forms.``EditPasswordForm`(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, field_order=None, use_required_attribute=None, renderer=None)

  Bases : `django.forms.forms.Form`

  Form to change the password of a user

  `base_fields` = {'password': <django.forms.fields.CharField object>, 'password1': <django.forms.fields.CharField object>, 'password2': <django.forms.fields.CharField object>}
  `clean_password2`()

    Verify if the two new passwords are identical

  `declared_fields` = {'password': <django.forms.fields.CharField object>, 'password1': <django.forms.fields.CharField object>, 'password2': <django.forms.fields.CharField object>}
  `media`

class `users.forms.``ExportForm`(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, field_order=None, use_required_attribute=None, renderer=None)

  Bases : `django.forms.forms.Form`

  `FIELDS_CHOICES` = (('username', "Nom d'utilisateur"), ('last_name', 'Nom'), ('first_name', 'Prénom'), ('email', 'Adresse mail'), ('school', 'École'), ('balance', 'Solde'), ('credit', 'Crédit'), ('debit', 'Débit'))
  `QUERY_TYPE_CHOICES` = (('all', 'Tous les comptes'), ('all_active', 'Tous les comptes actifs'), ('adherent', 'Tous les adhérents'), ('adherent_active', 'Tous les adhérents actifs'))
  `base_fields` = {'fields': <django.forms.fields.MultipleChoiceField object>, 'group': <django.forms.models.ModelChoiceField object>, 'query_type': <django.forms.fields.ChoiceField object>}
  `declared_fields` = {'fields': <django.forms.fields.MultipleChoiceField object>, 'group': <django.forms.models.ModelChoiceField object>, 'query_type': <django.forms.fields.ChoiceField object>}
  `media`

class `users.forms.``GroupsEditForm`(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)

  Bases : `django.forms.models.ModelForm`

  Form to edit a user’s list of groups

  class `Meta`

    Bases : `object`

    `fields` = ('groups',)
    `model`

      alias de `django.contrib.auth.models.User`

  `base_fields` = {'groups': <django.forms.models.ModelMultipleChoiceField object>}
  `declared_fields` = {}
  `media`

class `users.forms.``LoginForm`(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, field_order=None, use_required_attribute=None, renderer=None)

  Bases : `django.forms.forms.Form`

  Form to log in

  `base_fields` = {'password': <django.forms.fields.CharField object>, 'username': <django.forms.fields.CharField object>}
  `declared_fields` = {'password': <django.forms.fields.CharField object>, 'username': <django.forms.fields.CharField object>}
  `media`

class `users.forms.``SchoolForm`(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)

  Bases : `django.forms.models.ModelForm`

  Form to add and edit a school

  class `Meta`

    Bases : `object`

    `fields` = '__all__'
    `model`

      alias de `users.models.School`

  `base_fields` = {'name': <django.forms.fields.CharField object>}
  `declared_fields` = {}
  `media`

class `users.forms.``SelectNonAdminUserForm`(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, field_order=None, use_required_attribute=None, renderer=None)

  Bases : `django.forms.forms.Form`

  Form to select a user from all non-staff users

  `base_fields` = {'user': <django.forms.models.ModelChoiceField object>}
  `declared_fields` = {'user': <django.forms.models.ModelChoiceField object>}
  `media`

class `users.forms.``SelectNonSuperUserForm`(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, field_order=None, use_required_attribute=None, renderer=None)

  Bases : `django.forms.forms.Form`

  Form to select a user from all non-superuser users

  `base_fields` = {'user': <django.forms.models.ModelChoiceField object>}
  `declared_fields` = {'user': <django.forms.models.ModelChoiceField object>}
  `media`

class `users.forms.``SelectUserForm`(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, field_order=None, use_required_attribute=None, renderer=None)

  Bases : `django.forms.forms.Form`

  Form to select a user from all users

  `base_fields` = {'user': <django.forms.models.ModelChoiceField object>}
  `declared_fields` = {'user': <django.forms.models.ModelChoiceField object>}
  `media`

class `users.forms.``addCotisationHistoryForm`(*args, **kwargs)

  Bases : `django.forms.models.ModelForm`

  Form to add a cotisation to user

  class `Meta`

    Bases : `object`

    `fields` = ('cotisation', 'paymentMethod')
    `model`

      alias de `users.models.CotisationHistory`

  `base_fields` = {'cotisation': <django.forms.models.ModelChoiceField object>, 'paymentMethod': <django.forms.models.ModelChoiceField object>}
  `declared_fields` = {}
  `media`

class `users.forms.``addWhiteListHistoryForm`(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)

  Bases : `django.forms.models.ModelForm`

  Form to add a whitelist to user

  class `Meta`

    Bases : `object`

    `fields` = ('duration',)
    `model`

      alias de `users.models.WhiteListHistory`

  `base_fields` = {'duration': <django.forms.fields.IntegerField object>}
  `declared_fields` = {}
  `media`

## users.models module

class `users.models.``CotisationHistory`(*args, **kwargs)

  Bases : `django.db.models.base.Model`

  Stores cotisations history, related to Cotisation

  exception `DoesNotExist`

    Bases : `django.core.exceptions.ObjectDoesNotExist`

  exception `MultipleObjectsReturned`

    Bases : `django.core.exceptions.MultipleObjectsReturned`

  `amount`

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

  `coopeman`

    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.

  `coopeman_id`

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

  `cotisation`

    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.

  `cotisation_id`

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

  `duration`

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

  `endDate`

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

  `get_next_by_endDate`(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=True, **kwargs)
  `get_next_by_paymentDate`(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=True, **kwargs)
  `get_previous_by_endDate`(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=False, **kwargs)
  `get_previous_by_paymentDate`(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=False, **kwargs)
  `history` = <simple_history.manager.HistoryManager object>
  `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>
  `paymentDate`

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

  `paymentMethod`

    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.

  `paymentMethod_id`

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

  `save_without_historical_record`(*args, **kwargs)

    Save model without saving a historical record

    Make sure you know what you’re doing before you use this method.

  `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 `users.models.``HistoricalCotisationHistory`(id, amount, duration, paymentDate, endDate, user, paymentMethod, cotisation, coopeman, history_id, history_change_reason, history_date, history_user, history_type)

  Bases : `simple_history.models.HistoricalChanges`, `django.db.models.base.Model`

  exception `DoesNotExist`

    Bases : `django.core.exceptions.ObjectDoesNotExist`

  exception `MultipleObjectsReturned`

    Bases : `django.core.exceptions.MultipleObjectsReturned`

  `amount`

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

  `coopeman`

    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.

  `coopeman_id`

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

  `cotisation`

    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.

  `cotisation_id`

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

  `duration`

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

  `endDate`

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

  `get_history_type_display`(*, field=<django.db.models.fields.CharField: history_type>)
  `get_next_by_endDate`(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=True, **kwargs)
  `get_next_by_history_date`(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)
  `get_next_by_paymentDate`(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=True, **kwargs)
  `get_previous_by_endDate`(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=False, **kwargs)
  `get_previous_by_history_date`(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)
  `get_previous_by_paymentDate`(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=False, **kwargs)
  `history_change_reason`

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

  `history_date`

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

  `history_id`

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

  `history_object`
  `history_type`

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

  `history_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.

  `history_user_id`

    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.

  `instance`
  `instance_type`

    alias de `CotisationHistory`

  `next_record`

    Get the next history record for the instance. None if last.

  `objects` = <django.db.models.manager.Manager object>
  `paymentDate`

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

  `paymentMethod`

    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.

  `paymentMethod_id`

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

  `prev_record`

    Get the previous history record for the instance. None if first.

  `revert_url`()

    URL for this change in the default admin site.

  `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 `users.models.``HistoricalProfile`(id, credit, debit, cotisationEnd, user, school, history_id, history_change_reason, history_date, history_user, history_type)

  Bases : `simple_history.models.HistoricalChanges`, `django.db.models.base.Model`

  exception `DoesNotExist`

    Bases : `django.core.exceptions.ObjectDoesNotExist`

  exception `MultipleObjectsReturned`

    Bases : `django.core.exceptions.MultipleObjectsReturned`

  `cotisationEnd`

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

  `credit`

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

  `debit`

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

  `get_history_type_display`(*, field=<django.db.models.fields.CharField: history_type>)
  `get_next_by_history_date`(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)
  `get_previous_by_history_date`(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)
  `history_change_reason`

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

  `history_date`

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

  `history_id`

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

  `history_object`
  `history_type`

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

  `history_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.

  `history_user_id`

    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.

  `instance`
  `instance_type`

    alias de `Profile`

  `next_record`

    Get the next history record for the instance. None if last.

  `objects` = <django.db.models.manager.Manager object>
  `prev_record`

    Get the previous history record for the instance. None if first.

  `revert_url`()

    URL for this change in the default admin site.

  `school`

    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.

  `school_id`

    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 `users.models.``HistoricalSchool`(id, name, history_id, history_change_reason, history_date, history_user, history_type)

  Bases : `simple_history.models.HistoricalChanges`, `django.db.models.base.Model`

  exception `DoesNotExist`

    Bases : `django.core.exceptions.ObjectDoesNotExist`

  exception `MultipleObjectsReturned`

    Bases : `django.core.exceptions.MultipleObjectsReturned`

  `get_history_type_display`(*, field=<django.db.models.fields.CharField: history_type>)
  `get_next_by_history_date`(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)
  `get_previous_by_history_date`(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)
  `history_change_reason`

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

  `history_date`

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

  `history_id`

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

  `history_object`
  `history_type`

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

  `history_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.

  `history_user_id`

    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.

  `instance`
  `instance_type`

    alias de `School`

  `name`

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

  `next_record`

    Get the next history record for the instance. None if last.

  `objects` = <django.db.models.manager.Manager object>
  `prev_record`

    Get the previous history record for the instance. None if first.

  `revert_url`()

    URL for this change in the default admin site.

class `users.models.``HistoricalWhiteListHistory`(id, paymentDate, endDate, duration, user, coopeman, history_id, history_change_reason, history_date, history_user, history_type)

  Bases : `simple_history.models.HistoricalChanges`, `django.db.models.base.Model`

  exception `DoesNotExist`

    Bases : `django.core.exceptions.ObjectDoesNotExist`

  exception `MultipleObjectsReturned`

    Bases : `django.core.exceptions.MultipleObjectsReturned`

  `coopeman`

    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.

  `coopeman_id`

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

  `duration`

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

  `endDate`

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

  `get_history_type_display`(*, field=<django.db.models.fields.CharField: history_type>)
  `get_next_by_endDate`(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=True, **kwargs)
  `get_next_by_history_date`(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)
  `get_next_by_paymentDate`(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=True, **kwargs)
  `get_previous_by_endDate`(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=False, **kwargs)
  `get_previous_by_history_date`(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)
  `get_previous_by_paymentDate`(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=False, **kwargs)
  `history_change_reason`

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

  `history_date`

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

  `history_id`

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

  `history_object`
  `history_type`

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

  `history_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.

  `history_user_id`

    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.

  `instance`
  `instance_type`

    alias de `WhiteListHistory`

  `next_record`

    Get the next history record for the instance. None if last.

  `objects` = <django.db.models.manager.Manager object>
  `paymentDate`

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

  `prev_record`

    Get the previous history record for the instance. None if first.

  `revert_url`()

    URL for this change in the default admin site.

  `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 `users.models.``Profile`(*args, **kwargs)

  Bases : `django.db.models.base.Model`

  Stores user profile

  exception `DoesNotExist`

    Bases : `django.core.exceptions.ObjectDoesNotExist`

  exception `MultipleObjectsReturned`

    Bases : `django.core.exceptions.MultipleObjectsReturned`

  `alcohol`

    Computes ingerated alcohol

  `balance`

    Computes user balance

  `cotisationEnd`

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

  `credit`

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

  `debit`

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

  `history` = <simple_history.manager.HistoryManager object>
  `id`

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

  `is_adherent`

    Test if a user is adherent

  `nb_pintes`

    Return the number of pintes currently owned

  `objects` = <django.db.models.manager.Manager object>
  `positiveBalance`()

    Test if the user balance is positive or null

  `rank`

    Computes the rank (by debit) of the user

  `save_without_historical_record`(*args, **kwargs)

    Save model without saving a historical record

    Make sure you know what you’re doing before you use this method.

  `school`

    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.

  `school_id`

    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 one-to-one relation.

    In the example:

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

    `Restaurant.place` is a `ForwardOneToOneDescriptor` 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 `users.models.``School`(*args, **kwargs)

  Bases : `django.db.models.base.Model`

  Stores school

  exception `DoesNotExist`

    Bases : `django.core.exceptions.ObjectDoesNotExist`

  exception `MultipleObjectsReturned`

    Bases : `django.core.exceptions.MultipleObjectsReturned`

  `history` = <simple_history.manager.HistoryManager object>
  `id`

    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>
  `profile_set`

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

        class Child(Model):
            parent = ForeignKey(Parent, related_name='children')

    `Parent.children` is a `ReverseManyToOneDescriptor` instance.

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

  `save_without_historical_record`(*args, **kwargs)

    Save model without saving a historical record

    Make sure you know what you’re doing before you use this method.

class `users.models.``WhiteListHistory`(*args, **kwargs)

  Bases : `django.db.models.base.Model`

  Stores whitelist history

  exception `DoesNotExist`

    Bases : `django.core.exceptions.ObjectDoesNotExist`

  exception `MultipleObjectsReturned`

    Bases : `django.core.exceptions.MultipleObjectsReturned`

  `coopeman`

    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.

  `coopeman_id`

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

  `duration`

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

  `endDate`

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

  `get_next_by_endDate`(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=True, **kwargs)
  `get_next_by_paymentDate`(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=True, **kwargs)
  `get_previous_by_endDate`(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=False, **kwargs)
  `get_previous_by_paymentDate`(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=False, **kwargs)
  `history` = <simple_history.manager.HistoryManager object>
  `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>
  `paymentDate`

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

  `save_without_historical_record`(*args, **kwargs)

    Save model without saving a historical record

    Make sure you know what you’re doing before you use this method.

  `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.

`users.models.``create_user_profile`(sender, instance, created, **kwargs)

  Create profile when user is created

`users.models.``save_user_profile`(sender, instance, **kwargs)

  Save profile when user is saved

`users.models.``str_user`(self)

  Rewrite str method for user

## users.tests module

## users.urls module

`users.urls.``path`(route, view, kwargs=None, name=None, *, Pattern=<class 'django.urls.resolvers.RoutePattern'>)

## users.views module

class `users.views.``ActiveUsersAutocomplete`(**kwargs)

  Bases : `dal_select2.views.Select2QuerySetView`

  Autocomplete for active users

  `get_queryset`()

    Filter the queryset with GET[“q”].

class `users.views.``AdherentAutocomplete`(**kwargs)

  Bases : `dal_select2.views.Select2QuerySetView`

  Autocomplete for adherents

  `get_queryset`()

    Filter the queryset with GET[“q”].

class `users.views.``AllUsersAutocomplete`(**kwargs)

  Bases : `dal_select2.views.Select2QuerySetView`

  Autcomplete for all users

  `get_queryset`()

    Filter the queryset with GET[“q”].

class `users.views.``NonAdminUserAutocomplete`(**kwargs)

  Bases : `dal_select2.views.Select2QuerySetView`

  Autocomplete for non-admin users

  `get_queryset`()

    Filter the queryset with GET[“q”].

class `users.views.``NonSuperUserAutocomplete`(**kwargs)

  Bases : `dal_select2.views.Select2QuerySetView`

  Autocomplete for non-superuser users

  `get_queryset`()

    Filter the queryset with GET[“q”].

`users.views.``export_csv`(request)

## Module contents