Remove the custom get_view_name function

It appeared to not be doing anything that we were making use of that
couldn't already be done, slightly differently, using DRF's built-in
one.
This commit is contained in:
Jeff Bradberry
2019-05-28 14:34:01 -04:00
parent b5728fc548
commit f94959d120
8 changed files with 59 additions and 80 deletions

View File

@@ -60,7 +60,7 @@ class InventoryUpdateEventsList(SubListAPIView):
serializer_class = InventoryUpdateEventSerializer
parent_model = InventoryUpdate
relationship = 'inventory_update_events'
view_name = _('Inventory Update Events List')
name = _('Inventory Update Events List')
search_fields = ('stdout',)
def finalize_response(self, request, response, *args, **kwargs):