# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class Category(models.Model):
name = models.CharField(max_length=32, verbose_name='Наименование')
class Meta:
verbose_name = 'Категорию'
verbose_name_plural = 'Категории'
def __unicode__(self):
return unicode(self.name)
def __str__(self):
return self.__unicode__()