Passing for Django 1.11.
[wolnelektury.git] / src / catalogue / models / bookmedia.py
index 377dbc4..407c419 100644 (file)
@@ -146,3 +146,11 @@ class BookMedia(models.Model):
                 return None
         else:
             return None
+
+    @property
+    def director(self):
+        return self.extra_info.get('director_name', None)
+
+    @property
+    def artist(self):
+        return self.extra_info.get('artist_name', None)