0

I'm have some Datefields I would like to keep null or blank when I load a fixture. Is there a way to keep them null or blank without putting some default value? In the model, I have already set null=True, blank=True.

H C
  • 1,138
  • 4
  • 21
  • 39

1 Answers1

0

You can try:

day=models.DateField(null=True, blank=True, default=None)

and avoid passing auto_now_add=True argument.

aminrd
  • 4,300
  • 4
  • 23
  • 45