Re: Query help

2021-09-21 Thread J.T.
nce > > > https://stackoverflow.com/questions/1454727/do-properties-work-on-django-model-fields > > > On Mon, Sep 20, 2021 at 6:41 PM J.T. wrote: > >> I have a model called member that has 6 columns: ID, Value1, Value2, >> Value3, Value4, Value5 >> >> The values in

Query help

2021-09-20 Thread J.T.
I have a model called member that has 6 columns: ID, Value1, Value2, Value3, Value4, Value5 The values in columns Value1, Value2, Value3, Value4, Value5 are either Y or N. I'm trying to query by ID to count the number of Y values for each member. For example one row would be: 5, Y, N, Y, N, N

Two Django projects accessing same db

2020-06-16 Thread J.T.
I have Django project A on one server & Django project B on a different server. I want project B to be able to load data into the db associated with project A. My question is: do I have to have the app and models on project B exactly match the app and models on project A? Also, other than point

Dynamic Radio Form

2020-05-04 Thread J.T.
I'm working on an app that will allow the user to select the winner between two teams (radio buttons) and I need the info saved to the database. I'm having trouble with the radio forms part. I've read the documentation and searched Google all day, but I can't seem to wrap my heads around it. H