Re: Models/Foreign Keys best practice

2017-02-24 Thread Richard Jackson
Hi Melvyn, This worked perfectly, and definitely helped with my own understanding, thank you! For the sake of formatting I've included my interpretation of your suggestion: # models.py from django.db import models from django.utils import timezone class Performance(models.Model):

Re: Models/Foreign Keys best practice

2017-02-22 Thread Richard Jackson
Hi Melvyn - great reply, thank you so much for taking the time to help! I've got to head out now but will reply tomorrow - just wanted to leave an initial thank you note! Rich On Wednesday, February 22, 2017 at 5:01:36 PM UTC, Melvyn Sopacua wrote: > > Hi Richard, > > > > good questions

Re: Models/Foreign Keys best practice

2017-02-22 Thread Melvyn Sopacua
Hi Richard, good questions and your initial data model defines your application challenges. It is by far the most important step in application design, so it's important to get it "as right as possible". On Wednesday 22 February 2017 06:25:24 Richard Jackson wrote: > The app lists

Re: Models/Foreign Keys best practice

2017-02-22 Thread Luvpreet Singh
Hi Richard, I am facing a difficulty here. Can you please tell me that how to iterate over this queryset , performance.ensemble_set.all() ?? Thanks. On Wednesday, February 22, 2017 at 7:55:24 PM UTC+5:30, Richard Jackson wrote: > > Hi all, > > I'm putting together my first app, closely