Skip to content

Commit

Permalink
Merge pull request #123 from Ichimonji10/cvv
Browse files Browse the repository at this point in the history
Fix bug with ContentView and ContentViewVersion
  • Loading branch information
elyezer committed Jun 19, 2015
2 parents 38bef1f + f07ae52 commit 7a0b066
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ class ContentViewVersion(Entity, EntityReadMixin, EntityDeleteMixin):

def __init__(self, server_config=None, **kwargs):
self._fields = {
'content_view': entity_fields.OneToOneField(ContentView),
'environment': entity_fields.OneToManyField(Environment),
'puppet_module': entity_fields.OneToManyField(PuppetModule),
}
Expand Down Expand Up @@ -1069,7 +1070,7 @@ class ContentView(

def __init__(self, server_config=None, **kwargs):
self._fields = {
'component': entity_fields.OneToManyField(ContentView),
'component': entity_fields.OneToManyField(ContentViewVersion),
'composite': entity_fields.BooleanField(),
'description': entity_fields.StringField(),
'label': entity_fields.StringField(),
Expand Down

0 comments on commit 7a0b066

Please sign in to comment.