Opened 14 years ago
Closed 14 years ago
#13982 closed (invalid)
django admin overwrites objects
Reported by: | Jorge | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi , I think django has a problem in admin, I have a model like :
class Test(models.Model):
code_test= models.CharField(max_length=5,primary_key=True)
name = models.CharField(max_length=15)
when i get to admin and i make add a test fill the fields with for example code_test = a and name = first test. And them make save, until there no problem it saves. now I add another Test and the fields this time Code_teste = a and name = second test.
this time django OVERWRITES the older object, instead of saying that the object with that pk already exists. please tell help i have this problem in one produtive system.
Django version 1.1.1