Metadata-Version: 2.1
Name: django-anchor
Version: 0.1.0
Summary: Migration substitutes to anchor models when refactoring.
Home-page: https://github.com/bennylope/django-anchor
Author: Ben Lopatin
Author-email: ben@benlopatin.com
License: MIT
Keywords: django-anchor
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.8
Classifier: Framework :: Django :: 1.11
Classifier: Framework :: Django :: 2.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
License-File: LICENSE

=============
Django Anchor
=============

Migration substitutes to anchor models when refactoring.

Installing
----------

Install Django Anchor::

    pip install django-anchor

Using it
--------

Make sure you have your table name explicitly named using `Meta.db_table` in your
model first!

Move a model between two Django apps. Make sure this is the only migration inducing
change you make.

Run `makemigrations` to create the migration files

In each file replace this::

    from django.db import migrations

With this::

    from anchor import anchor as migrations

All done.
