Skip to content

Commit

Permalink
Update TemplateKind entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Tkachenko committed Jan 24, 2017
1 parent dd8c037 commit f2f3f60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -5346,13 +5346,16 @@ def __init__(self, server_config=None, **kwargs):
super(TemplateCombination, self).__init__(server_config, **kwargs)


class TemplateKind(Entity, EntityReadMixin):
class TemplateKind(Entity, EntityReadMixin, EntitySearchMixin):
"""A representation of a Template Kind entity.
Unusually, the ``/api/v2/template_kinds/:id`` path is totally unsupported.
"""
def __init__(self, server_config=None, **kwargs):
self._fields = {
'name': entity_fields.StringField(),
}
self._meta = {
'api_path': 'api/v2/template_kinds',
'num_created_by_default': 8,
Expand Down

0 comments on commit f2f3f60

Please sign in to comment.