Browse Source

Fixes #484: Allow bulk deletion of >1K objects

Jeremy Stretch 9 năm trước cách đây
mục cha
commit
de8fd550cb
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      netbox/netbox/settings.py

+ 3 - 0
netbox/netbox/settings.py

@@ -164,6 +164,9 @@ STATICFILES_DIRS = (
     os.path.join(BASE_DIR, "project-static"),
 )
 
+# Disable default limit of 1000 fields per request. Needed for bulk deletion of objects. (Added in Django 1.10.)
+DATA_UPLOAD_MAX_NUMBER_FIELDS = None
+
 # Messages
 MESSAGE_TAGS = {
     messages.ERROR: 'danger',