What I mean is I have:
class Client(models.Model):
some_field = models.CharField()
class Ticket(models.Model):
client = models.ForeignKey(Client)
Ticket
s are FOREVER in my system, but I want users to be able to delete clients they don't want anymore. Currently it'll delete all the tickets created by the Client
.
- Is this a bad idea (architecturally speaking), and should I just mark them as
not_needed
or something instead? - If it's not a bad idea, what's the best way to do it, while remaining DRY. I don't want to have to override
delete()
for each model that does this, but will if I have to (what's the best way to do that, if that's the only way).