Skip to content

Commit

Permalink
eek
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlinspace committed Jul 18, 2024
1 parent 148ad17 commit 604ffcc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
from django.utils.translation import gettext_lazy as _
from django_choices_field import TextChoicesField

import django.contrib.auth.models as django_auth_models

from battles.models import Battle
from splatnet_assets.common_model_choices import XBattleDivisions
from splatnet_assets.fields import ColorField
Expand Down Expand Up @@ -243,3 +245,12 @@ class ProfileUrl(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="profile_urls")
url = models.URLField()
is_rel_me_verified = models.BooleanField(default=False)


class CustomAnonymousUser(django_auth_models.AnonymousUser):
@property
def entitlements(self):
return set()


django_auth_models.AnonymousUser = CustomAnonymousUser

0 comments on commit 604ffcc

Please sign in to comment.