When I save objects from the admin pages, I get COPIES of what I'm saving. When I save them through the API, I don't get the duplicates. I'd like to know if I'm doing something wrong or misunderstanding something.
Model: from django.db import models class Process(models.Model): process_name = models.CharField(max_length=100) def __str__(self): return self.process_name class Admin: pass class subProcess(Process): myname = models.CharField(max_length=20) def __str__(self): return self.myname class Admin: pass Given this model (and using the built-in admin) if I create a subProcess, the Process gets created properly. If I subsequently load that process and save it, even without changing anything, I end up with a second copy of that subProcess. If I do this from the API, the second and subsequent saves do NOT create a duplicate copy: In [3]: from procs.models import * In [7]: sp = subProcess(myname='hello world', process_name='command line') In [8]: sp.save() # one object In [9]: sp.myname="good bye world" In [10]: sp.save() # still just one object Thanks for any ideas you can offer. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---