Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
exclude db table name
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelButkovic committed Jul 29, 2016
1 parent 19d63bf commit f80b0a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bulbs/utils/test/__init__.py
Expand Up @@ -19,6 +19,10 @@
import six

from bulbs.content.models import Content
from bulbs.super_features.utils import get_superfeature_model


SUPERFEATURE_MODEL = get_superfeature_model()


def make_content(*args, **kwargs):
Expand All @@ -31,7 +35,7 @@ def make_content(*args, **kwargs):
models = indexable_registry.families[Content]
model_keys = []
for key in models.keys():
if key not in ['content_content', 'poll_poll', 'super_features_basesuperfeature']:
if key not in ['content_content', 'poll_poll', SUPERFEATURE_MODEL._meta.db_table]:
model_keys.append(key)
key = random.choice(model_keys)
klass = indexable_registry.all_models[key]
Expand Down

0 comments on commit f80b0a8

Please sign in to comment.