Re: models.py question for setting up multiple sql entries for 1 master sql entry

2014-11-24 Thread François Schiettecatte
Hi You should consider having a single Barcodeid table and have a one-to-many relationship between the Hardwareid and Barcodeid. François > On Nov 24, 2014, at 1:43 AM, Bovine Devine wrote: > > Hello, > > I am creating hardware database webapp in django and I have a question for > how to s

models.py question for setting up multiple sql entries for 1 master sql entry

2014-11-23 Thread Bovine Devine
Hello, I am creating hardware database webapp in django and I have a question for how to setup my models.py to ensure I get the data entered into the mysql db that I have setup. I have my models.py setup this way: from django.db import models from django.utils import timezone # Create your mod