From: Radek Czajka Date: Mon, 1 Jun 2020 15:16:03 +0000 (+0200) Subject: Minor fixes. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/d8c37344ee1994d4e9e567682cb798856cd38c77 Minor fixes. --- diff --git a/src/catalogue/api/views.py b/src/catalogue/api/views.py index 335a30161..8b0dc1afc 100644 --- a/src/catalogue/api/views.py +++ b/src/catalogue/api/views.py @@ -45,7 +45,7 @@ class BookList(ListAPIView): serializer_class = serializers.BookListSerializer def get(self, request, filename=None, **kwargs): - if filename and 'count' not in request.query_params: + if filename and not kwargs.get('tags') and 'count' not in request.query_params: try: with open(os.path.join(settings.MEDIA_ROOT, 'api', '%s.%s' % (filename, request.accepted_renderer.format)), 'rb') as f: content = f.read() diff --git a/src/catalogue/models/bookmedia.py b/src/catalogue/models/bookmedia.py index de493d747..7aa2bddf7 100644 --- a/src/catalogue/models/bookmedia.py +++ b/src/catalogue/models/bookmedia.py @@ -90,7 +90,7 @@ class BookMedia(models.Model): import mutagen from mutagen import id3 - artist_name = director_name = project = funded_by = '' + artist_name = director_name = project = funded_by = license = '' if self.type == 'mp3': try: audio = id3.ID3(self.file.path) diff --git a/src/club/templates/club/schedule.html b/src/club/templates/club/schedule.html index bfae8c56c..7371f6dda 100644 --- a/src/club/templates/club/schedule.html +++ b/src/club/templates/club/schedule.html @@ -75,14 +75,6 @@ wspierasz nas kwotą {{ schedule.amount }} zł{% if schedule.monthly %} miesięc {% if schedule.membership %}

Należysz już do Towarzystwa Przyjaciół Wolnych Lektur!

- -
- {% csrf_token %} - Skontaktujemy się z Tobą w sprawie odbioru legitymacji członkowskiej.
Tutaj możesz podać imię i nazwisko, jakie ma na niej widnieć:
-
- -
- {% else %}