Ticket #26009: 26009.diff

File 26009.diff, 966 bytes (added by Tim Graham, 8 years ago)
  • tests/order_with_respect_to/models.py

    diff --git a/tests/order_with_respect_to/models.py b/tests/order_with_respect_to/models.py
    index 7428183..f7eb0b1 100644
    a b class Post(models.Model):  
    4646
    4747# order_with_respect_to points to a model with a OneToOneField primary key.
    4848class Entity(models.Model):
    49     pass
     49    class Meta:
     50        app_label = 'order_with_respect_to'  # model is shared in contenttypes_tests
    5051
    5152
    5253class Dimension(models.Model):
    5354    entity = models.OneToOneField('Entity', primary_key=True, on_delete=models.CASCADE)
    5455
     56    class Meta:
     57        app_label = 'order_with_respect_to'  # model is shared in contenttypes_tests
     58
    5559
    5660class Component(models.Model):
    5761    dimension = models.ForeignKey('Dimension', on_delete=models.CASCADE)
    5862
    5963    class Meta:
     64        app_label = 'order_with_respect_to'  # model is shared in contenttypes_tests
    6065        order_with_respect_to = 'dimension'
Back to Top