Thanks. That makes sense. Appreciate your help.
On Tue, May 5, 2020, 11:11 AM Chetan Ganji wrote:
> To answer your question, you could add an extra field on schedule model to
> store the winner
> e.g. winner = models.CharField(max_length=55)
>
> IMO, league and team in the schedule model should
To answer your question, you could add an extra field on schedule model to
store the winner
e.g. winner = models.CharField(max_length=55)
IMO, league and team in the schedule model should be separate tables. You
would use fk to them in schedule model.
winner should also be an fk to team.
Regards
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
3 matches
Mail list logo