Im building an SAAS with a model Project.
Each Project can have Events, but the event-details (Model fields) to be stored are vastly different between each Project.
To handle the diversity of Event-fields, ive come to believe i need to create a new Model for each project, maybe named ProjectnameEvent.
But doing so, how would i be able to import and query the correct EventModel in the views, forms and so on?
Alternatively, would it be a better idea (and possible?) to make a model BaseEvent with project_id, and then extend this like ProjectnameEvent(BaseEvent): …project_specific_fields…
Searching the forums ive come to realize this might be a case for GenericForeignKey, but even then, im unsure of how to import/query the correct models im the view/forms mm.
As you can undoubtably tell, i am fumbling in the dark for a solution, so hopefully you can point me in the right direction.
Thank you - Martin