15 lines
234 B
Python
15 lines
234 B
Python
from django.db import models
|
|
|
|
|
|
class AbstractTag(models.Model):
|
|
name = models.CharField(
|
|
max_length=255,
|
|
unique=True,
|
|
)
|
|
|
|
class Meta:
|
|
abstract = True
|
|
|
|
def __str__(self):
|
|
return self.name
|