mirror of
https://github.com/django/django.git
synced 2025-07-28 23:54:02 +00:00
Fixed #22749: Making SQL management commands migration aware.
This commit is contained in:
parent
6fd455adfc
commit
f70f669941
7 changed files with 72 additions and 3 deletions
10
tests/commands_sql_migrations/models.py
Normal file
10
tests/commands_sql_migrations/models.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from django.db import models
|
||||
|
||||
|
||||
class Comment(models.Model):
|
||||
pass
|
||||
|
||||
|
||||
class Book(models.Model):
|
||||
title = models.CharField(max_length=100, db_index=True)
|
||||
comments = models.ManyToManyField(Comment)
|
Loading…
Add table
Add a link
Reference in a new issue