mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 17:26:10 -06:00
Update schema.py
This commit is contained in:
parent
6c43d87d22
commit
3808a2735f
@ -247,13 +247,7 @@ class NetBoxAutoSchema(AutoSchema):
|
||||
"""
|
||||
|
||||
# Determine if the method is for list or detail.
|
||||
if self.is_bulk_action:
|
||||
is_list = True
|
||||
# Determine using the URL path if the method is for list or detail.
|
||||
elif '{id}' in self.path:
|
||||
is_list = False
|
||||
else:
|
||||
is_list = True
|
||||
is_list = not '{id}' in self.path
|
||||
|
||||
model_name = self.view.queryset.model._meta.verbose_name
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user