mirror of
https://github.com/django/django.git
synced 2025-10-29 00:26:07 +00:00
committed by
Tim Graham
parent
232a1d297c
commit
fc8e1e0c10
@@ -29,7 +29,7 @@ class Article(models.Model):
|
||||
|
||||
|
||||
class Movie(models.Model):
|
||||
#5218: Test models with non-default primary keys / AutoFields
|
||||
# Test models with non-default primary keys / AutoFields #5218
|
||||
movie_id = models.AutoField(primary_key=True)
|
||||
name = models.CharField(max_length=60)
|
||||
|
||||
@@ -73,7 +73,7 @@ class NonAutoPK(models.Model):
|
||||
name = models.CharField(max_length=10, primary_key=True)
|
||||
|
||||
|
||||
#18432: Chained foreign keys with to_field produce incorrect query
|
||||
# Chained foreign keys with to_field produce incorrect query #18432
|
||||
class Model1(models.Model):
|
||||
pkey = models.IntegerField(unique=True, db_index=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user