1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-11-21 21:47:33 +00:00
Altessimo/artists/models.py
2020-12-16 04:32:20 +07:00

16 lines
501 B
Python

from django.db import models
from django.apps import apps
# Create your models here.
class Artist(models.Model):
name = models.CharField(max_length=255)
romanized_name = models.CharField(max_length=255)
aliases = models.ManyToManyField("self",blank=True)
category = models.ManyToManyField("categories.Category",blank=True)
about_composer = models.TextField(blank=True)
about_music = models.TextField(blank=True)
def __str__(self):
return self.romanized_name