from __future__ import annotations from django.db import models class B(models.Model): null_field = models.IntegerField() null_field_real = models.IntegerField(null=False)