Minor fixes.
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 1 Jun 2020 15:16:03 +0000 (17:16 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Thu, 10 Sep 2020 12:15:11 +0000 (14:15 +0200)
src/catalogue/api/views.py
src/catalogue/models/bookmedia.py
src/club/templates/club/schedule.html

index 335a301..8b0dc1a 100644 (file)
@@ -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()
index de493d7..7aa2bdd 100644 (file)
@@ -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)
index bfae8c5..7371f6d 100644 (file)
@@ -75,14 +75,6 @@ wspierasz nas kwotą {{ schedule.amount }} zł{% if schedule.monthly %} miesięc
 {% if schedule.membership %}
   <p>
   Należysz już do Towarzystwa Przyjaciół Wolnych Lektur!</p>
-
-  <form class="wlform" method='post' action='{% url "club_membership" %}'>
-         {% csrf_token %}
-         Skontaktujemy się z Tobą w sprawie odbioru legitymacji członkowskiej.<br>Tutaj możesz podać imię i nazwisko, jakie ma na niej widnieć:<br>
-         <input name="name" value="{{ schedule.membership.name|default:schedule.membership.user.username }}"><br>
-         <button class="submit" type="submit">Zmień dane</button>
-  </form>
-
 {% else %}
 
 <p>