Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

179
Vistas
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 Respuestas
Responde la pregunta

0

Did you mean

certs_only = models.BooleanField()
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda