Re: New to django and ORM. So a basic question about data inserts

2017-04-11 Thread Camilo Torres
Hi, Lets suppose we simplify your problem and we have these 2 django models: from django.db import models class Person(models.Model): name = models.CharField(max_length=255, null=False, blank=False) def __str__(self): return self.name class Residence(models.Model): address

Re: New to django and ORM. So a basic question about data inserts

2017-04-10 Thread Lachlan Musicman
-- The most dangerous phrase in the language is, "We've always done it this way." - Grace Hopper On 11 April 2017 at 05:35, Cassium wrote: > Say I am collecting residence history and I allow the user to submit up to > five previous addresses. I have a PEOPLE model and RESIDENCES model and >

New to django and ORM. So a basic question about data inserts

2017-04-10 Thread Cassium
Say I am collecting residence history and I allow the user to submit up to five previous addresses. I have a PEOPLE model and RESIDENCES model and anticipate a many-to-many relationship between. Back when I was working with Joomla I would have manages these models (well, tables) with a table in