Skip to content

Commit

Permalink
Adding original_module_streams field to filter
Browse files Browse the repository at this point in the history
Just like the RPMContentViewFilter with original_package, the
ModuleStreamContentViewFilter has a flag to include Module Streams with
no errata.
  • Loading branch information
valleedelisle authored and JacobCallahan committed Dec 18, 2020
1 parent b4e11b7 commit 20f2307
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -2413,6 +2413,8 @@ class ModuleStreamContentViewFilter(AbstractContentViewFilter):
"""A representation of a Content View Filter of type "modulemd"."""

def __init__(self, server_config=None, **kwargs):
# Add the `original_module_streams` field to what's provided by parent class.
self._fields = {'original_module_streams': entity_fields.BooleanField()}
super().__init__(server_config, **kwargs)
self._fields['type'].default = 'modulemd'

Expand Down

0 comments on commit 20f2307

Please sign in to comment.