django/django — pull request #3521 by yamila-moreno (2014-11-15 11:57:33+00:00)
Title: Fixes #23799 squashmigrations optimize conditionally

This commit fixes this issue
https://code.djangoproject.com/ticket/23799

It has tests and implementation