Reputation: 2347
I'm building poker website and I would like to create "Tournament schedule", something like this. Problem is, some tournaments are repeated every Monday, some always on 1st day of new month, some every two hours from monday to friday. My two questions are:
Upvotes: 0
Views: 75
Reputation: 20828
If you are having a poker tournament, you would want a historical record of each tournament, so you would need an unique record for each tournament that happens. Otherwise, you would be mixing old tournaments with new, joining and unjoining player records from them all the time, etc...
Yes, you can set default
as a kwarg
in the Django models.py for each field, or use an init
argument for User form data to pre-populate tournament forms for new tournaments based off the prior form they filled out.
Upvotes: 1