cursor.execute Error

2010-01-05 Thread Narciso Oceguera
Hi all. I want to create a trigger in a PostgreSQL database table. I use a cursor.execute(sql) statement in a management.py file at my app folder. But I've got the error: "IndexError: tuple index out of range" becouse of an '%' character in the format of a PostgreSQL Raise Exception statement

Field Lookup

2009-05-15 Thread Narciso Oceguera
Hi, How can I limit the choices list of a ForeignKey field (with limit_choices_to attribute) that do not match certain condition? I don't find any Field Lookup to acomplish that. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed t