Skip to content

Commit

Permalink
Don't add nested models into defined_models, and don't create buckets
Browse files Browse the repository at this point in the history
for them
  • Loading branch information
pigmej committed Nov 18, 2015
1 parent 8341667 commit 4be2969
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 4be2969

Please sign in to comment.