Quantcast
Channel: User Hubro - Stack Overflow
Viewing all articles
Browse latest Browse all 45

How can I allow django admin to set a field to NULL?

$
0
0

I've set my Model field to null=True, which allows NULL in MySQL, but I can't seem to assign NULL to the field through Django Admin. I've tried also setting blank=True, but that just sets the field to an empty string. Following this didn't work either, as the field value was set to "None", the string.

Any ideas?


Viewing all articles
Browse latest Browse all 45

Trending Articles