Skip to content

Commit

Permalink
Fix issue where variable is used before it is declared
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoistinen committed Apr 19, 2014
1 parent fd40dab commit 056f627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cms/plugin_pool.py
Expand Up @@ -157,7 +157,7 @@ def set_plugin_meta(self):
if (table_name not in table_names
and splitter in table_name):
old_db_name = table_name
table_name.split(splitter, 1)
splitted = table_name.split(splitter, 1)
table_name = 'cmsplugin_%s' % splitted[1]
if table_name in table_names:
att.rel.through._meta.db_table = table_name
Expand All @@ -169,7 +169,7 @@ def set_plugin_meta(self):
if (table_name not in table_names
and splitter in table_name):
old_db_name = table_name
table_name.split(splitter, 1)
splitted = table_name.split(splitter, 1)
table_name = 'cmsplugin_%s_items' % splitted[1]
if table_name in table_names:
att.through._meta.db_table = table_name
Expand Down

0 comments on commit 056f627

Please sign in to comment.