django-scheduler icon indicating copy to clipboard operation
django-scheduler copied to clipboard

What's the rationale behind EventRelation model?

Open khvn26 opened this issue 9 years ago • 1 comments

Just asking to clarify how justified is a separate model for defining relations.

Why not use a ForeignKey or subclass it to define a custom field?

khvn26 avatar Sep 05 '16 10:09 khvn26

The class EventRelation allows you to relate the event model with any object. If we add a ForeignKey to the event you need to add a specific column for each app or model. Of course you can subclass and define a custom field, but the EventRelation allows you to do it without migrations.

llazzaro avatar Sep 05 '16 17:09 llazzaro