Re: Same form saving to related models

2017-06-09 Thread Elorm Koku
No luck for me? On Jun 9, 2017 4:43 AM, "Elorm Koku" wrote: > Hi guys, > I need a means to save these 2 models related by FK but I want to use one > form. I searched but I jus can't do it. > > class Student(models.Model): > ... > > class Parent(models.Model): > > child = models.Fore

Problems with migrations cleaning up a date field

2017-06-09 Thread Lee Hinde
I'm having problems with a migration after cleaning up an oddity with a date field and I'm not sure how to fix it. Any advice appreciated. I made this change to a date field: -start_date = models.DateField(db_index=True, default=False, - help_text="The date e

Re: Problems with migrations cleaning up a date field

2017-06-09 Thread Lee Hinde
I should add, this project is in 1.8.x. I'm working around the problem by skipping the migration. -- 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 django-users+un

Re: Problems with migrations cleaning up a date field

2017-06-09 Thread James Schneider
On Jun 9, 2017 6:09 PM, "Lee Hinde" wrote: I'm having problems with a migration after cleaning up an oddity with a date field and I'm not sure how to fix it. Any advice appreciated. I made this change to a date field: -start_date = models.DateField(db_index=True, default=False, -

What is the best approach

2017-06-09 Thread Arshdeep Singh
down votefavorite I was thinking about making a Hostel Allocation Web application. It has models, Student, Room, Hostel. What I want is to create a function that allocates students after each year. For that, I thou