mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
fix type error
This commit is contained in:
parent
aef513f038
commit
8b2f4780ed
@ -144,7 +144,7 @@ class UserConfigView(LoginRequiredMixin, View):
|
||||
# Update specific values
|
||||
elif "_update" in request.POST:
|
||||
for key in request.POST:
|
||||
if not key.startswith('_') and not key.contains('csrf'):
|
||||
if not key.startswith('_') and not key.startswith('csrf'):
|
||||
for value in request.POST.getlist(key):
|
||||
userconfig.set(key, value)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user