Opened 7 years ago

Closed 7 years ago

#12108 closed (invalid)

unable to execute basic insert using djangopsycopg2.ProgrammingError: current transaction is aborted, commands ignored until end of transaction block

Reported by: mckarvin@… 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: UI/UX:

Description (last modified by Alex Gaynor)


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')

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):

The table has been created and I am able to insert value using the posgre interface. Please help me out on this problem

Change History (2)

comment:1 Changed 7 years ago by Alex Gaynor

Description: modified (diff)
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

Please use preview.

comment:2 Changed 7 years ago by Russell Keith-Magee

Resolution: invalid
Status: newclosed

Trac isn't for solving general user queries - it's for fixing bugs in Django itself. This isn't a bug in Django - there are several problems with your sample code, and a postgres transaction error would be the expected response. If you want general bug-fixing advice, please ask on django-users.

Note: See TracTickets for help on using tickets.
Back to Top