theonlysam / bookthecourt

MIT License
0 stars 0 forks source link

Booking view #15

Open theonlysam opened 11 months ago

theonlysam commented 11 months ago
theonlysam commented 11 months ago

I get an error when I try to save. Thought it might have been the recurring field so I made that optional as well.

image

bbelderbos commented 11 months ago

I get an error when I try to save. Thought it might have been the recurring field so I made that optional as well.

image

Did you use a debugger in views.py to inspect?

Removing the clean_players code it worked so I zoomed in on that and seems you are trying to pick "authors" from the dict that is not a valid field so it would return None

image
bbelderbos commented 11 months ago

@theonlysam you also needed if players and len(players) > 4: + a 2 other tiny fixes: https://github.com/theonlysam/bookthecourt/pull/17