Skip to content

Commit

Permalink
fix proxy models cannot contain model fields
Browse files Browse the repository at this point in the history
  • Loading branch information
50-Course committed May 28, 2024
1 parent 0a2a1eb commit 9eb6e10
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions backend/paycheck_core/src/paycheck/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from django.utils.translation import gettext_lazy as _
from phone_field import PhoneField
from uuid import uuid4
from django.contrib.auth import get_user_model
from django.db.models import Q
from django.conf import settings


Expand Down Expand Up @@ -274,9 +272,6 @@ class Customer(BaseUser):
"""

user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
profile = models.OneToOneField(UserProfile, on_delete=models.CASCADE)

class Meta:
proxy = True

Expand Down

0 comments on commit 9eb6e10

Please sign in to comment.