Added 'Hide from userlist' to user settings

This commit is contained in:
Julian Müller (ChaoticByte) 2023-04-13 21:19:11 +02:00
parent 105ddc0409
commit 5ab0d1088f
4 changed files with 26 additions and 4 deletions

View file

@ -13,6 +13,7 @@ class User(AbstractUser):
allow_order_with_negative_balance = models.BooleanField(default=False)
profile_picture_filename = models.CharField(default="default.svg", max_length=25)
allowed_to_supply = models.BooleanField(default=False)
hide_from_userlist = models.BooleanField(default=False)
def delete(self, *args, **kwargs):
self.balance = 0