Hello guys and gals,
Assuming a simple django project where you have models Author and Book (pseudo code):
Author:
- Name = char field
- Birthdate = date field
Book:
- Name = char field
- Author = foreign key (Author)
Is there a way to freeze books in a way that changes to an author are not propagated to its books? I know I can denormalize the Book model to accomplish that, but I'm looking for another way to do that. I tried using some of the versioning apps out there but none of them work well for my case.
The scenario I have is that some of my models cannot be changed after they are entered into the system, for example, if the "Bible" Book is entered into the system with the Author "Jedus Christ", when someone catches the typo and changes the Author name to "Jesus Christ" the Book "Bible" would still need to have "Jebus Christ" as it's Author.
Thanks.
Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2546E321-53B9-43D1-B19A-83622F0A387D%40creactive.com.br.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment