Adapting schema editors to be able to perform the same operations with
model states would be way more efficient as model rendering could always
be delayed until it's a necessity such during the application of
`RunPython` operations.
Ref #22608.
Initial work by Markus Holtermann here
https://github.com/django/django/compare/master...MarkusH:schemaeditor-
modelstate
--
Ticket URL: <https://code.djangoproject.com/ticket/29898>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Adam (Chainz) Johnson (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:1>
Comment (by Sanskar Jaiswal):
Hello everyone. This is the
[https://gist.github.com/aryan9600/b1c2eaf445006c17e02e7677cf1098d5
proposal] that I submitted for GSoC, which unfortunately wasn't accepted.
If it's fine, I would still like to work on this ticket. It would be
amazing if I could get the above mentioned proposal reviewed and was given
feedback, so that I know what to change and how to proceed.
Cheers
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:2>
* owner: nobody => Manav Agarwal
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:3>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"d718d99017b83987fe994fab968d6c3039f352b2" d718d990]:
{{{
#!CommitTicketReference repository=""
revision="d718d99017b83987fe994fab968d6c3039f352b2"
Refs #29898 -- Moved django.db.migrations.operations.utils to
django.db.migrations.utils.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:4>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"503ee41497f346de27843a4ea976c57303c76558" 503ee414]:
{{{
#!CommitTicketReference repository=""
revision="503ee41497f346de27843a4ea976c57303c76558"
Refs #29898 -- Moved state_forwards()'s logic from migration operations to
ProjectState.
Thanks Simon Charette and Markus Holtermann for reviews.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:5>
* cc: David Wobrock (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:6>
Comment (by Carlton Gibson <carlton@…>):
In [changeset:"54a30a7a00fea6c5e3702282ade6e0238e06de3b" 54a30a7]:
{{{
#!CommitTicketReference repository=""
revision="54a30a7a00fea6c5e3702282ade6e0238e06de3b"
Refs #29898 -- Changed ProjectState.real_apps to set.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:7>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"3e6a3e885336bea43bc42b8fdf8e2401970b7018" 3e6a3e88]:
{{{
#!CommitTicketReference repository=""
revision="3e6a3e885336bea43bc42b8fdf8e2401970b7018"
Refs #29898 -- Refactored out
ProjectState.resolve_model_relations()/resolve_model_field_relations()
hooks.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:8>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:9>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"196a99da5d9c4c33a78259a58d38fb114a4d2ee8" 196a99da]:
{{{
#!CommitTicketReference repository=""
revision="196a99da5d9c4c33a78259a58d38fb114a4d2ee8"
Refs #29898 -- Made ProjectState encapsulate alterations in relations
registry.
Thanks Simon Charette and Chris Jerdonek for reviews.
Co-authored-by: Mariusz Felisiak <felisiak...@gmail.com>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:10>
* has_patch: 1 => 0
* stage: Ready for checkin => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:11>
Comment (by GitHub <noreply@…>):
In [changeset:"fa1d7ba5b9c7707cae4a23ce9876c0a7abd924a5" fa1d7ba5]:
{{{
#!CommitTicketReference repository=""
revision="fa1d7ba5b9c7707cae4a23ce9876c0a7abd924a5"
Refs #29898 -- Changed fields in ProjectState's relation registry to dict.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29898#comment:12>