Browse Source

fix: Indentation and variable name issues in users/models.py

release-2.9
Jean-Romain Garnier 5 years ago
committed by Gabriel Detraz
parent
commit
9abd329e16
  1. 6
      users/models.py

6
users/models.py

@ -92,8 +92,10 @@ from PIL import Image
from io import BytesIO
import sys
# General utilities
def linux_user_check(login):
"""Check if a login comply with unix base login policy
@ -1862,6 +1864,7 @@ class User(
"""
return self.theme.split(".")[0]
class Adherent(User):
"""Base re2o Adherent model, inherit from User. Add other attributes.
@ -1923,7 +1926,7 @@ class Adherent(User):
:return: An adherent.
"""
return cls.objects.get(pk=adherentid)
return cls.objects.get(pk=object_id)
@staticmethod
def can_create(user_request, *_args, **_kwargs):
@ -2790,4 +2793,3 @@ class EMailAddress(RevMixin, AclMixin, models.Model):
if result:
raise ValidationError(reason)
super(EMailAddress, self).clean(*args, **kwargs)

Loading…
Cancel
Save