فهرست منبع

fix type error

checktheroads 4 سال پیش
والد
کامیت
8b2f4780ed
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      netbox/users/views.py

+ 1 - 1
netbox/users/views.py

@@ -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)