File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by Django 1.10.2 on 2016-10-14 01:45
3
+ from __future__ import unicode_literals
4
+
5
+ from django .db import migrations , models
6
+
7
+
8
+ class Migration (migrations .Migration ):
9
+
10
+ dependencies = [
11
+ ('notifications' , '0003_auto_20161014_0118' ),
12
+ ]
13
+
14
+ operations = [
15
+ migrations .AlterField (
16
+ model_name = 'telegrambot' ,
17
+ name = 'token' ,
18
+ field = models .CharField (max_length = 100 , unique = True ),
19
+ ),
20
+ ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class TelegramBot(models.Model):
15
15
16
16
name = models .CharField (max_length = 25 , null = False , primary_key = True )
17
17
# allows more than one telegram bot implementation with the same token
18
- token = models .CharField (max_length = 100 , null = False )
18
+ token = models .CharField (max_length = 100 , null = False , unique = True )
19
19
20
20
module_name = models .CharField (max_length = 25 , null = True )
21
21
You can’t perform that action at this time.
0 commit comments