Re: Comparing two lists

2017-01-26 Thread Richard Hall
Melvyn, thanks for looking at this. Despite my inept attempt at explanation you've understood what I am trying to do - I need to revisit my relationships and fully explore my options at the model level. Thanks again, Richard P.S. I'll try to use clearer analogies in the future - in my head

Re: Comparing two lists

2017-01-26 Thread Richard Hall
Thanks for replying, I need all the help I can get. What I'm trying to do is the opposite of what I seem to be doing. Rather than looking for an address without a building I am trying to see, from my list of all buildings, which one has an address (filtered by patientid). I can easily list all

Re: Comparing two lists

2017-01-26 Thread Richard Hall
, but if that building has an address. On Thursday, 26 January 2017 19:21:18 UTC+11, ludovic coues wrote: > > You are assuming you can have address without building. > {% if x.building %} > > 2017-01-26 0:27 GMT+01:00 Richard Hall <fishing...@gmail.com >: > > > Hello, I've

Comparing two lists

2017-01-25 Thread Richard Hall
Hello, I've only just started with Django and need a bit of help steering myself in the right direction. I want to create a page that has a list of possible forms that could be filled in for a patient in a medical study and differentiate between those forms which have already been completed