Skip to content
Snippets Groups Projects
Commit 32816a34 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch '666-admin-loading' into 'master'

Resolve "Error 500 when loading /api/admin/music/track/99104/change/ (edit track  via django admin)"

See merge request funkwhale/funkwhale!556
parents d402a927 3b87580a
No related branches found
No related tags found
No related merge requests found
......@@ -25,15 +25,18 @@ RUN \
RUN mkdir /requirements
COPY ./requirements/base.txt /requirements/base.txt
# hack around https://github.com/pypa/pip/issues/6158#issuecomment-456619072
ENV PIP_DOWNLOAD_CACHE=/noop/
RUN \
echo 'fixing requirements file for alpine' && \
sed -i '/Pillow/d' /requirements/base.txt && \
\
\
echo 'installing pip requirements' && \
pip3 install --no-cache-dir --upgrade pip && \
pip3 install --no-cache-dir setuptools wheel && \
pip3 install --no-cache-dir -r /requirements/base.txt
pip3 install --upgrade pip && \
pip3 install setuptools wheel && \
pip3 install -r /requirements/base.txt && \
rm -rf $PIP_DOWNLOAD_CACHE
ARG install_dev_deps=0
COPY ./requirements/*.txt /requirements/
......
......@@ -20,7 +20,7 @@ class AlbumAdmin(admin.ModelAdmin):
class TrackAdmin(admin.ModelAdmin):
list_display = ["title", "artist", "album", "mbid"]
search_fields = ["title", "artist__name", "album__title", "mbid"]
list_select_related = True
list_select_related = ["album__artist", "artist"]
@admin.register(models.ImportBatch)
......
......@@ -42,7 +42,7 @@ ipython>=6,<7
mutagen>=1.42,<1.43
django-taggit>=0.22,<0.23
django-taggit>=0.23,<0.24
pymemoize==1.0.3
django-dynamic-preferences>=1.7,<1.8
......
Fixed crashing Django admin when loading track detail page (#666)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment