mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 16:09:16 +02:00
UI To manage artists, albums, tracks
This commit is contained in:
parent
ae390e5c1c
commit
b4731928fc
39 changed files with 2837 additions and 116 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue