Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The permission codenamed 'view_audiofile' clashes with a builtin permission for model 'audiofield.AudioFile' #41

Open
AM0k84 opened this issue Oct 9, 2020 · 2 comments

Comments

@AM0k84
Copy link

AM0k84 commented Oct 9, 2020

I have error:
The permission codenamed 'view_audiofile' clashes with a builtin permission for model 'audiofield.AudioFile'

i tried this solution
344ff9c

but doesnt work... always this error ;/

@JanineRoux
Copy link

I'm trying to save an audiofile to my 'Music' model.

I have just installed django-audiofield (0.10.0)
I'm using MVSC 2019 version 4.8.03752 on Windows 10
Python 3.8 Django 3.1.5

Executing manage.py check
SystemCheckError: System check identified some issues:

ERRORS:
audiofield.AudioFile: (auth.E005) The permission codenamed 'view_audiofile' clashes with a builtin permission for model 'audiofield.AudioFile'.

System check identified 1 issue (0 silenced).
The interactive Python process has exited.

I have tried to locate the source of the error, but am unable to.
I have also tried to locate the source by commenting out the settings, model and admin updates - to no avail.
There seems to be no other option than to uninstall the django-audiofield package . :-(

@katechengudu
Copy link

I have error:
The permission codenamed 'view_audiofile' clashes with a builtin permission for model 'audiofield.AudioFile'

i tried this solution
344ff9c

but doesnt work... always this error ;/

hi there,

the 344ff9c solution https://github.com/areski/django-audiofield/commit/344ff9c135387719d6000a09c28d3648dd9a9a05 has sorted out this problem for me.

the changes in this given solution are to be made in the audiofield/models.py file in the installed package file, NOT our own models.py file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants