Closed lukas-kratochvil closed 2 months ago
MAFILDB is led by Django convention for a value of CharField/TextField if null=true
: https://docs.djangoproject.com/en/5.0/ref/models/fields/#null
This attribute is never NULL and always contains "" (empty string) for no value:
models.CharField("StringOnly", max_length=20, blank=True, null=True)
There is an exception if the CharField/TextField attribute is both unique and null, then it can contain NULL values:
models.CharField("CanBeNull", max_length=20, blank=True, null=True, unique=True)
First option is chosen: "show all visits in the recent visits table and disable action buttons for those that cannot be further manipulated by the operator".
Deal with nullable fields. This is important primarily when fetching recent visits.
We have 2 choices how to deal with visits that contain null in fields our app requires: