Changes between Initial Version and Version 1 of Ticket #35199


Ignore:
Timestamp:
Feb 15, 2024, 8:39:41 AM (9 months ago)
Author:
Paco Martínez
Comment:

Sorry but trying a bit more I discovered that the fields in the unique_together were named with the "_id" suffix as they are ForeignKey. Don't know how the constraint was there for several months and working fine. Now it's enforcing to name the fields without the suffix.

With that the makemigrations command runs as expected.

Sorry for the inconvenience of creating the ticket.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35199

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #35199 – Description

    initial v1  
    66class MyModel(models.Model):
    77    field1 = models.CharField(max_length=50)
    8     field2 = models.IntegerField()
    9     field3 = models.DateField()
     8    field2 = models.ForeignKey()
     9    field3 = models.ForeignKey()
    1010
    1111    class Meta:
Back to Top