> The current code is: > if pk_set: > check if a record with that pk exists. > if it does, do an update. > if it does not, do an insert. > else: > do an insert. > > If you abandon the record check when pk_set, then you lose the ability > to manually specify an ID for use in insert.
That's ok. All we are trying to say is that INSERT code should be a separate function which can be used independent to UPDATE code. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
