#24686: Support for Moving a model between two Django apps
-------------------------------+------------------------------------
Reporter: Alex Rothberg | Owner: Bhuvnesh
Type: New feature | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Comment (by Bhuvnesh):
Sorry! I completely misunderstood what maarten was trying to say. Thanks
for the clarification Shai.
>>The auto detector will see it as the deletion of model in the old app
and creation of that model in the new app. This will also lead to losing
all the data associated with that model.
This will happen if you change just the app_label of model to the
app_label of app you want to move the model and not actually move the
model code. For example, you have SampleModel in app_a and you want to
move it to app_b, so you just added app_label=app_b in SampleModel's Meta
and not actually moved the model code to app_b.
--
Ticket URL: <https://code.djangoproject.com/ticket/24686#comment:36>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018c9e1dda55-c97a9bb8-1d6c-48c9-b127-487006e365e7-000000%40eu-central-1.amazonses.com.