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

15 lines
289 B
Python

from django.db import models
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=255)
description = models.TextField(blank=True)
class Meta:
verbose_name_plural = "Categories"
def __str__(self):
return self.name