mgaitan / waliki

A wiki engine powered by Django and Git
http://waliki.pythonanywhere.com
BSD 3-Clause "New" or "Revised" License
309 stars 56 forks source link

permission codenamed 'view_page' clashes with a builtin permission #158

Open luzik opened 6 years ago

luzik commented 6 years ago

After django upgrade 1.11 --> 2.1 and waliki to @master branch, while starting django I run into:

SystemCheckError: System check identified some issues:

ERRORS:
waliki.Page: (auth.E005) The permission codenamed 'view_page' clashes with a builtin permission for model 'waliki.Page'.
luzik commented 5 years ago

This is related to: https://docs.djangoproject.com/en/2.1/releases/2.1/#considerations-for-the-new-model-view-permission

yangjiel commented 4 years ago

The issue may or may not be fixed. The solution is simple, remove the view_page in your meta class should resolve this since Django 2.1 offer the default permission in view, add, edit and delete IIRC.