Opened 15 years ago
Last modified 15 years ago
#12108 closed
unable to execute basic insert using djangopsycopg2.ProgrammingError: current transaction is aborted, commands ignored until end of transaction block — at Version 1
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | 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 (last modified by )
Hi,
I am getting the following error when I try to insert a row in the table.
psycopg2.ProgrammingError: current transaction is aborted, commands ignored until end of transaction block
The commands i am using are
>>> a = route('113','NORTH','TRUE') >>> a.save()
The model created for route is
class route(models.Model): routeid = models.AutoField(primary_key=True) name = models.CharField(max_length = 200) direction = models.CharField(max_length = 5) schedulebased = models.BooleanField() def __unicode__(self): return self.name
The table has been created and I am able to insert value using the posgre interface. Please help me out on this problem
Note:
See TracTickets
for help on using tickets.
Please use preview.