areski / django-audiofield

Django-Audiofield is a simple app that allows Audio files upload, management and conversion to different audio format (mp3, wav & ogg), which also makes it easy to play audio files into your Django application.
Other
174 stars 51 forks source link

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

Open AM0k84 opened 4 years ago

AM0k84 commented 4 years ago

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

i tried this solution https://github.com/areski/django-audiofield/pull/35/commits/344ff9c135387719d6000a09c28d3648dd9a9a05

but doesnt work... always this error ;/

JanineRoux commented 3 years ago

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 commented 3 years ago

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.