Re: Field forced to not-null

2018-08-09 Thread Phlip Pretorius
Thank you Andréas and Jason That solved my problem Regards, Phlip On Monday, August 6, 2018 at 3:02:01 PM UTC+2, Andréas Kühne wrote: > > Hi Philip, > > The field is required because you haven't allowed it to be blank - and > django admin requires fields to have the following attributes if

Re: Field forced to not-null

2018-08-06 Thread Jason
A good thing to keep in mind is null is for the database, and blank is for django validation -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Field forced to not-null

2018-08-06 Thread Andréas Kühne
Hi Philip, The field is required because you haven't allowed it to be blank - and django admin requires fields to have the following attributes if you don't require them: Active = models.CharField(max_length=1, null=True, blank=True) Otherwise the GUI will mark the field as required. See here:

Field forced to not-null

2018-08-06 Thread Phlip Pretorius
Hallo, I have created a model that looks like this: class ActionType(models.Model): """The type of actions that must be taken at a meeting with respect to agenda points e.g. 'Decide', 'Take Note'etc. """ AtpCode =