Hello. 
If you changing some fields of Author, books will not changed, except you 
changed Author.id. 
I think it would be much clear if you will provide some real python 
example. 

On Sunday, July 3, 2016 at 5:20:40 PM UTC+3, Hermano Cabral wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
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/b89ac939-4065-4390-bfe5-65c70cf8f3a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to