from django.db import models

from .base import BaseModel


class Tag(BaseModel):
    _id = models.CharField(max_length=1024)
    lower = models.CharField(max_length=1024)
    system = models.BooleanField(default=False)

from django.db import models

from .base import BaseModel


class Tag(BaseModel):
    _id = models.CharField(max_length=1024)
    lower = models.CharField(max_length=1024)
    system = models.BooleanField(default=False)

    class Meta:
        unique_together = ('_id', 'system')

Add unique together on _id and system
Add unique together on _id and system
