mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
draft for error handling on device with no name
This commit is contained in:
parent
ef03a2f383
commit
76e634330f
@ -676,6 +676,9 @@ class BulkRenameView(GetReturnURLMixin, BaseMultiObjectView):
|
||||
else:
|
||||
form = self.form(initial={'pk': request.POST.getlist('pk')})
|
||||
selected_objects = self.queryset.filter(pk__in=form.initial['pk'])
|
||||
for object in selected_objects:
|
||||
# Do something to raise error message to user
|
||||
pass
|
||||
|
||||
return render(request, self.template_name, {
|
||||
'form': form,
|
||||
|
Loading…
Reference in New Issue
Block a user