Skip to content

Commit 5b43c37

Browse files
committed
1 parent 9cef4ef commit 5b43c37

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

db_mutex/migrations/0001_initial.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Migration(migrations.Migration):
1414
name='DBMutex',
1515
fields=[
1616
('id', models.AutoField(serialize=False, auto_created=True, verbose_name='ID', primary_key=True)),
17-
('lock_id', models.CharField(unique=True, max_length=256)),
17+
('lock_id', models.CharField(unique=True, max_length=255)),
1818
('creation_time', models.DateTimeField(auto_now_add=True)),
1919
],
2020
options={

db_mutex/models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ class DBMutex(models.Model):
66
Models a mutex lock with a ``lock_id`` and a ``creation_time``.
77
88
:type lock_id: str
9-
:param lock_id: A unique CharField with a max length of 256
9+
:param lock_id: A unique CharField with a max length of 255
1010
1111
:type creation_time: datetime
1212
:param creation_time: The creation time of the mutex lock
1313
"""
14-
lock_id = models.CharField(max_length=256, unique=True)
14+
lock_id = models.CharField(max_length=255, unique=True)
1515
creation_time = models.DateTimeField(auto_now_add=True)
1616

1717
class Meta:

0 commit comments

Comments
 (0)