I noticed that the output file has this line:
"Make sure each ForeignKey and OneToOneField has `on_delete` set to the
desired behavior"
I'd like to know,
why no don't get the information from database?
is this a bug, or just no use for some reason?
--
Ticket URL: <https://code.djangoproject.com/ticket/33248>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
* component: Uncategorized => Database layer (models, ORM)
Comment:
Replying to [ticket:33248 Jiangshan00001]:
> I'd like to know,
> why no don't get the information from database?
>
> is this a bug, or just no use for some reason?
Django doesn't support database-level cascade options and doesn’t create
an SQL constraint in the database, so there is no way to introspect it,
see #21961.
--
Ticket URL: <https://code.djangoproject.com/ticket/33248#comment:1>