Opened 5 years ago

Closed 5 years ago

#13982 closed (invalid)

django admin overwrites objects

Reported by: dragon_men 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: UI/UX:


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

Change History (1)

comment:1 Changed 5 years ago by dragon_men

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
Back to Top