将Django更新为1.8.7后,我无法通过选择
从后端删除记录我有以下异常
NoReverseMatch at /admin/static_assets/staticassetdefinition/
Reverse for 'app_list' with arguments '()' and keyword arguments '{u'app_label': ''}' not found. 1 pattern(s) tried: [u'admin/(?P<app_label>projects|accounts|static_assets|imagelibrary|pages|sites|messaging|omss_auth|system|auth|tastypie)/$']
Request Method: POST
Request URL: http://192.168.59.100/admin/static_assets/staticassetdefinition/
Django Version: 1.8.7
Exception Type: NoReverseMatch
Exception Value:
Reverse for 'app_list' with arguments '()' and keyword arguments '{u'app_label': ''}' not found. 1 pattern(s) tried: [u'admin/(?P<app_label>projects|accounts|static_assets|imagelibrary|pages|sites|messaging|omss_auth|system|auth|tastypie)/$']
Exception Location: /usr/lib/python2.7/site-packages/django/core/urlresolvers.py in _reverse_with_prefix, line 495
Python Executable: /usr/bin/python
Python Version: 2.7.5
class StaticAssetDefinitionAdmin(admin.ModelAdmin):
inlines = [StaticAssetExecutionInline, StaticAssetCustomFieldDefinitionInline]
list_display = ['name', 'id', 'section', 'type', 'available', 'get_usage_rights', 'upload_execution']
actions = ['update_previews', 'regenerate_custom_definition_fields', 'check_depends', 'regenerate_default_pdf', 'test_all_executions']
list_editable = ('available',)
list_filter = ('available', SectionListFilter, StaticAssetTypeListFilter, UsageRightsFilter)
search_fields = ('name',)
更新
当我尝试从后端访问任何记录的历史记录视图时,也会出现相同的错误
有什么想法吗?
答案 0 :(得分:0)
原来在主应用程序中覆盖了delete_selected_confirmation.html模板,我忽略了这一点。