1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-11-22 05:57:31 +00:00
Altessimo/artists/models.py

16 lines
501 B
Python
Raw Normal View History

2020-12-15 21:32:20 +00:00
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