divio/django-cms — pull request #1540 by adaptivelogic (2012-11-29 12:36:24+00:00)
Title: Ensure that i18n does not break for new sites

When creating a new Site object, the ID of this object will most likely not be defined in the CMS_LANGUAGES setting.

This bugfix provides a best-guess default, offering all languages in LANGUAGES with default settings, ensuring that using the admin site before the settings have been altered does not cause tracebacks.

This also covers the case where the default site is not the same as SITE_ID.