Re: Comparing ManyToManyFields

2011-06-29 Thread Josh Lothian
Heh, whoops. So I'm reading in all the information about a machine from a file that is generated periodically on the machine (XML right now). I need to compare all the data about that machine to what's currently in the database, and create a new entry if anything has changed. The models are re

Re: Comparing ManyToManyFields

2011-06-29 Thread Andre Terra
You'll first have to explain what you mean by 'reading from a file' and 'comparing'. Are we comparing against serialized model exports? Is the user importing data from a csv file? What column(s) is(are) you using as keys for matching db objects against the file? Give us a little more details and