Skip to content

Commit

Permalink
Added Filters field in Role entity
Browse files Browse the repository at this point in the history
  • Loading branch information
jyejare committed Nov 22, 2017
1 parent 6a5a02c commit 434c52f
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 @@ -5578,13 +5578,14 @@ class Role(

def __init__(self, server_config=None, **kwargs):
self._fields = {
'filters': entity_fields.OneToManyField(Filter),
'location': entity_fields.OneToManyField(Location),
'name': entity_fields.StringField(
required=True,
str_type='alphanumeric',
length=(2, 30), # min length is 2 and max length is arbitrary
unique=True
),
'location': entity_fields.OneToManyField(Location),
'organization': entity_fields.OneToManyField(Organization),
}
self._meta = {
Expand Down

0 comments on commit 434c52f

Please sign in to comment.