Closed MarkGalloway closed 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).
This is still causing a lot of issues and wasted time. Is it too late to find a better design?
Tambam and I fixed this.
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).