dawalama/Tournament-Director-Foosball — comment on commit 5149578e3c8e825abe89ecfeb6575ce165184a97
File: models.py line 43
By jcarrafa:

I like the idea here. However, I think we're going to end up with so many variations of event types, that we'll have to keep adding properties here and in the implementation we'll have unwieldy trees of logic trying to determine how to draw the bracket.

I think a more scalable approach will be to implement a new class for every event type, which implements the proper logic, and here in the event table we will just keep track of an "event_type" name mapping to the correct subclass. From the event administrator's view, we'll have a repository of event types available.