API zásilkovna hotovo
This commit is contained in:
@@ -165,4 +165,10 @@ class CustomUser(SoftDeleteModel, AbstractUser):
|
||||
if save:
|
||||
self.save(update_fields=["email_verified", "email_verification_token", "email_verification_sent_at"])
|
||||
return True
|
||||
|
||||
def get_anonymous_user():
|
||||
"""Return the singleton anonymous user."""
|
||||
User = CustomUser
|
||||
return User.objects.get(username="anonymous")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user