fix after changes in Django constance