Inspect the schema and install baselines after running manage.py migrate.

Review Request #8804 - Created March 9, 2017 and updated

Christian Hammond
Django Evolution
master
d0896a8...
django-evolution
Newer versions of Django don't have syncdb, and therefore don't have the
post_syncdb signal we use in order to install model baselines and to
determine if we need to recommend installing evolutions.

This change updates our code to listen for a completed migration of an
app when on a newer version of Django. The common bits of code have been
moved into a common method shared by the signal handles for both syncdb
and migrate commands. This also cleans up and documents some of the code
in this path.

Been running this on my local development trees for a while, and tested
it with the Django 1.7+ unit tests in consuming projects.

Review Bot
  1. Tool: PEP8 Style Checker
    Processed Files:
        django_evolution/management/__init__.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        django_evolution/management/__init__.py
    
    
David Trowbridge
  1. Ship It!
Loading...