Re: [Pulp-dev] blank=True vs null=True for string fields

2021-01-27 Thread Calvin Spealman
I would say it is more than not being "the Django convention" and is in fact a pretty risky schema in general. I think its important to contextualize your question not as a framework one, but a more general database best practices one. On Wed, Jan 27, 2021 at 7:00 AM Quirin Pamp wrote: > While w

[Pulp-dev] blank=True vs null=True for string fields

2021-01-27 Thread Quirin Pamp
While working on this PR (https://github.com/pulp/pulp-2to3-migration/pull/295), there was a problem with duplicate units since I added a new "null=True" string field to a unique_together condition. It appeared some units ended up having a Null value, while others had the empty string (which w