Hi,

a customer has requested a function to "compare" reports.

So let's say I create a database report on Monday, then the data is 
constantly changing the whole week and on the following Monday it should be 
possible to get a report that either contains only changed and new records 
or all records plus a column that indicates that something has changed.

It is not important to know exactly which field has changed but only that 
something has changed. 

I'm already storing a "change_date" for each record, but this is also 
updated if the user just saves the same data again without actually 
changing any content. 

Also it is important to be able to not only compare based on date/time, but 
based on a specific reports status.

So I thought about storing a hash value for every record for each report so 
I could compare this later on.

Is there any functionality that makes creating this hash, e.g. by 
serializing each record into a string and creating a hash from this 
information?

Or does someone have any other (better) idea how to implement this?

Thanks
Thomas

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c8051a13-ac70-4a7f-9498-000f135c1f4f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to