Skip to content

Commit

Permalink
Merge pull request #345 from pigmej/new_db_nested_model_hotfix
Browse files Browse the repository at this point in the history
Don't add nested models into defined_models, and don't create buckets
  • Loading branch information
loles committed Nov 18, 2015
2 parents 611a462 + 4be2969 commit be5f9b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions solar/solar/dblayer/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@ def __new__(mcs, name, bases, attrs):
if bases == (object, ):
return cls

if issubclass(cls, NestedModel):
return cls

cls.bucket = Replacer('bucket', get_bucket, mcs)
mcs._defined_models.add(cls)
return cls
Expand Down

0 comments on commit be5f9b7

Please sign in to comment.