Commit 7049fae4 authored by Michal Čihař's avatar Michal Čihař

Code should be unique

parent 0a924707
from django.db import models
class Language(models.Model):
code = models.SlugField(db_index = True)
code = models.SlugField(unique = True)
name = models.CharField(max_length = 100)
nplurals = models.SmallIntegerField(default = 0)
pluralequation = models.CharField(max_length = 255, blank = True)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment