mirror of
https://github.com/Damillora/Altessimo
synced 2024-11-24 06:37:33 +00:00
15 lines
289 B
Python
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
|
|
|