tamara-bain / cmput410-project

Apache License 2.0
0 stars 1 forks source link

Author/ForeignAuthor Foreign Keys #19

Closed MarkGalloway closed 9 years ago

MarkGalloway commented 9 years ago

In the Post Model, having two Foreign key fields, where we only want one set, is a bit hacky.

Ideally, to ensure mutual exclusion, we could use a generic relation here so indeed only one can be set (and I don't mean just tossing an error).

MarkGalloway commented 9 years ago

This is still causing a lot of issues and wasted time. Is it too late to find a better design?

MarkGalloway commented 9 years ago

Tambam and I fixed this.