This loos like we're tying django-cms-dbtemplates to django robots. Maybe you should consider that middleware's logic and not its result. I'm referring to the fact that you can set the 'cms_admin_site' in the user session and change it when the user is choosing another site from the form.