mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 20:06:25 -06:00
7848 OpenAPI doc generation
This commit is contained in:
parent
b184dc35f9
commit
c32b681a26
@ -254,6 +254,9 @@ class NetBoxAutoSchema(AutoSchema):
|
||||
"""
|
||||
Generate a docstring for the method. It also takes into account whether the method is for list or detail.
|
||||
"""
|
||||
if not hasattr(self.view, 'queryset'):
|
||||
return None
|
||||
|
||||
model_name = self.view.queryset.model._meta.verbose_name
|
||||
|
||||
# Determine if the method is for list or detail.
|
||||
|
Loading…
Reference in New Issue
Block a user