Re: Recursive one-to-many foreign key on the same table

2018-08-10 Thread Phlip Pretorius
Thank you Marius; the video is worth the watch and thought provoking Phlip On Thursday, August 9, 2018 at 2:42:13 PM UTC+2, Phlip Pretorius wrote: > > I want to build a one-to-many recursive foreign key on a table in Django. > > The concept is something like this: > > T

Recursive one-to-many foreign key on the same table

2018-08-09 Thread Phlip Pretorius
I want to build a one-to-many recursive foreign key on a table in Django. The concept is something like this: Table: staff/person staff numberSurnameFirstnamesSupervisor 4637ZondoJulien 859076VanderbildtJohn4637 Tha

Re: Field forced to not-null

2018-08-09 Thread Phlip Pretorius
lowing 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: https://docs.djangoproject.com/en/2.1/ref/models/fields/#blank > > Regards, > > An

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 = models.Cha