DEV Community

Vicente G. Reyes
Vicente G. Reyes

Posted on

Weird bug when creating a user in django

0

I have a weird bug in django where I have 2 different profile models for each user type and one profile model creates two profile models when I create a User.

Here's my code for the user model:

class User(TimeStampedModel, AbstractUser)
    class Types(models.TextChoices):
        """Default user for Side Project."""
        COMPANY =

Top comments (0)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay