Ticket #4736: pg_capital_pk_test.diff

File pg_capital_pk_test.diff, 527 bytes (added by Antti Kaihola, 17 years ago)

revised test case for primary key db_column with upper case in the name

  • tests/modeltests/custom_pk/models.py

     
    99
    1010class Employee(models.Model):
    1111    employee_code = models.CharField(max_length=10, primary_key=True,
    12             db_column = 'code')
     12            db_column = 'Code')
    1313    first_name = models.CharField(max_length=20)
    1414    last_name = models.CharField(max_length=20)
    1515    class Meta:
Back to Top