Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

185
Visualizações
Fields added to Django's AbstractUser aren't showing up in the migration

I'm creating a custom User model based on AbstractUser:

from django.contrib.auth.models import AbstractUser
from django.db import models


class User(AbstractUser):
    certs_only: models.BooleanField()

When I run manage.py makemigrations, the migrations are created, but the certs_only field isn't there. All other fields from AbstractUser are there, eg password, last_login, etc. I see this migration in 0001_initial.py. This field also doesn't show up in the admin site, since it doesn't actually exist.

I've tried ./manage.py makemigrations common, as some suggested ('common' is my app name), but this made no difference. I've also tried adding fields of different types, but this seems to happen regardless.

What could be causing this?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Did you mean

certs_only = models.BooleanField()
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda