django/django — pull request #3533 by szopu (2014-11-15 14:54:26+00:00)
Title: Fixed #23794 - FieldDoesNotExist error in migration with deleted fields and unique_together constraint

The code in `check_dependency` is too specific. For instance the `any` function for `operation.unique_together=set([])` always returned `False` which caused the bug to happen. This PR contains following changes:
* added test case for this bug
* added simplified condition