UI To manage artists, albums, tracks

This commit is contained in:
Eliot Berriot 2019-04-17 14:17:59 +02:00
parent ae390e5c1c
commit b4731928fc
39 changed files with 2837 additions and 116 deletions

View file

@ -3,6 +3,7 @@ import logging
import mimetypes
import os
import tempfile
import urllib.parse
import uuid
import markdown
@ -124,6 +125,14 @@ class APIModelMixin(models.Model):
"https://{}/".format(d)
)
@property
def domain_name(self):
if not self.fid:
return
parsed = urllib.parse.urlparse(self.fid)
return parsed.hostname
class License(models.Model):
code = models.CharField(primary_key=True, max_length=100)