summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 50bb4230..80091756 100644
--- a/main/models.py
+++ b/main/models.py
@@ -135,7 +135,7 @@ class News(models.Model):
class Arch(models.Model):
id = models.AutoField(primary_key=True)
- name = models.CharField(maxlength=255)
+ name = models.CharField(unique=True,maxlength=255)
class Meta:
db_table = 'archs'
ordering = ['name']