When registering user/group permissions, specify add/change/delete permissions explicitly.
When registering user/group permissions, specify add/change/delete permissions explicitly.

This ensures that we don't pull in any other permissions that may happen to exist (but are not relevant to the Wagtail admin). Also, ensure that we pick up the appropriate user model as returned by get_user_model, as this is the one used for permission checks in the views.

mjec/wagtail,wagtail/wagtail,nutztherookie/wagtail,iansprice/wagtail,inonit/wagtail,zerolab/wagtail,inonit/wagtail,kaedroho/wagtail,quru/wagtail,rv816/wagtail,quru/wagtail,thenewguy/wagtail,torchbox/wagtail,Pennebaker/wagtail,hanpama/wagtail,gasman/wagtail,gasman/wagtail,takeflight/wagtail,kurtw/wagtail,hanpama/wagtail,rsalmaso/wagtail,nrsimha/wagtail,mayapurmedia/wagtail,serzans/wagtail,kaedroho/wagtail,kurtrwall/wagtail,thenewguy/wagtail,Klaudit/wagtail,mjec/wagtail,tangentlabs/wagtail,takeshineshiro/wagtail,wagtail/wagtail,Klaudit/wagtail,serzans/wagtail,rjsproxy/wagtail,FlipperPA/wagtail,Tivix/wagtail,Tivix/wagtail,chrxr/wagtail,serzans/wagtail,nilnvoid/wagtail,tangentlabs/wagtail,mixxorz/wagtail,mixxorz/wagtail,mixxorz/wagtail,timorieber/wagtail,Toshakins/wagtail,serzans/wagtail,mjec/wagtail,wagtail/wagtail,takeflight/wagtail,nealtodd/wagtail,wagtail/wagtail,mixxorz/wagtail,timorieber/wagtail,takeflight/wagtail,nimasmi/wagtail,thenewguy/wagtail,hanpama/wagtail,WQuanfeng/wagtail,gogobook/wagtail,Klaudit/wagtail,inonit/wagtail,nilnvoid/wagtail,rjsproxy/wagtail,thenewguy/wagtail,gasman/wagtail,chrxr/wagtail,kaedroho/wagtail,davecranwell/wagtail,rv816/wagtail,tangentlabs/wagtail,davecranwell/wagtail,nilnvoid/wagtail,gasman/wagtail,takeflight/wagtail,JoshBarr/wagtail,JoshBarr/wagtail,JoshBarr/wagtail,gasman/wagtail,timorieber/wagtail,Toshakins/wagtail,wagtail/wagtail,nimasmi/wagtail,kurtrwall/wagtail,hanpama/wagtail,kurtw/wagtail,WQuanfeng/wagtail,davecranwell/wagtail,chrxr/wagtail,takeshineshiro/wagtail,hamsterbacke23/wagtail,nealtodd/wagtail,mikedingjan/wagtail,nealtodd/wagtail,mayapurmedia/wagtail,jnns/wagtail,hamsterbacke23/wagtail,mikedingjan/wagtail,takeshineshiro/wagtail,tangentlabs/wagtail,nutztherookie/wagtail,quru/wagtail,Tivix/wagtail,mikedingjan/wagtail,WQuanfeng/wagtail,quru/wagtail,mixxorz/wagtail,jnns/wagtail,rsalmaso/wagtail,rjsproxy/wagtail,zerolab/wagtail,jnns/wagtail,iansprice/wagtail,hamsterbacke23/wagtail,WQuanfeng/wagtail,Pennebaker/wagtail,timorieber/wagtail,chrxr/wagtail,gogobook/wagtail,nrsimha/wagtail,nimasmi/wagtail,zerolab/wagtail,takeshineshiro/wagtail,kurtw/wagtail,torchbox/wagtail,FlipperPA/wagtail,nrsimha/wagtail,mikedingjan/wagtail,nimasmi/wagtail,kurtrwall/wagtail,Pennebaker/wagtail,rjsproxy/wagtail,rv816/wagtail,torchbox/wagtail,gogobook/wagtail,mayapurmedia/wagtail,mjec/wagtail,kaedroho/wagtail,kurtrwall/wagtail,Toshakins/wagtail,rsalmaso/wagtail,Pennebaker/wagtail,Klaudit/wagtail,iansprice/wagtail,inonit/wagtail,FlipperPA/wagtail,nilnvoid/wagtail,jnns/wagtail,kurtw/wagtail,zerolab/wagtail,gogobook/wagtail,mayapurmedia/wagtail,nutztherookie/wagtail,iansprice/wagtail,nealtodd/wagtail,Toshakins/wagtail,kaedroho/wagtail,nutztherookie/wagtail,rsalmaso/wagtail,rv816/wagtail,zerolab/wagtail,Tivix/wagtail,hamsterbacke23/wagtail,thenewguy/wagtail,rsalmaso/wagtail,JoshBarr/wagtail,FlipperPA/wagtail,davecranwell/wagtail,torchbox/wagtail,nrsimha/wagtail