feinheit/django-facebook-graph — pull request #11 by schmidsi (2012-02-23 21:21:05+00:00)
Title: Two small Bugfixes & Workaround for south

The cause of the bugfixes can be read in the code.

The South Workaround is explained here:
To migrate an old project to this new branch & approach, its best to use south. but south expects a models.py in the "app_label" root. if there is no models.py, it fails. but because we set the app_label of all modules to 'facebook' to have all under one hood in the admin, we can't migrate them granular.

with this workaround, south finds all the models who are activated in settings.py and we can preserve the structured approach. maybe it is a plus to have all activated models accessible via facebook.models.

but south compatibility is not discussed to the end with this workaround. the best will be, that every module has its own south migrations directory, where all migrations are done. but at this point, i dont know how to achieve this.