mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #27096 -- Fixed primary key introspection for sqlite3 backend
This commit is contained in:
@@ -15,7 +15,7 @@ class City(models.Model):
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class District(models.Model):
|
||||
city = models.ForeignKey(City, models.CASCADE)
|
||||
city = models.ForeignKey(City, models.CASCADE, primary_key=True)
|
||||
name = models.CharField(max_length=50)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user