New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid missing table errors on initial syncdb or migrate. see : https://g... #2

Merged
merged 1 commit into from Dec 29, 2011
Jump to file or symbol
Failed to load files and symbols.
+7 −1
Diff settings

Always

Just for now

Avoid missing table errors on initial syncdb or migrate. see : #1

  • Loading branch information...
airtonix committed Dec 18, 2011
commit 8089b3a6dd2d0cfdeb2866e7a23933985a39bd57
View
@@ -32,7 +32,13 @@ def set_themes():
return
site = Site.objects.get(id=settings.SITE_ID)
themes = [theme.name for theme in site.theme_set.all()]
themes = None
if hasattr(site, 'theme_set'):
try:
themes = [theme.name for theme in site.theme_set.all()]
except:
pass
if not themes:
return
ProTip! Use n and p to navigate between commits in a pull request.