Commit 2e9de93a authored by matthieu Michelet's avatar matthieu Michelet

edit placement

parent 29779b3f
......@@ -284,8 +284,8 @@ class User(FieldPermissionModelMixin, AbstractBaseUser, PermissionsMixin):
def is_admin(self):
admin,_ = Group.objects.get_or_create(name="admin")
""" Renvoie si l'user est admin"""
admin,_ = Group.objects.get_or_create(name="admin")
return self.is_superuser or admin in self.groups.all()
def get_full_name(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment