Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db_mutex/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Migration(migrations.Migration):
name='DBMutex',
fields=[
('id', models.AutoField(serialize=False, auto_created=True, verbose_name='ID', primary_key=True)),
('lock_id', models.CharField(unique=True, max_length=256)),
('lock_id', models.CharField(unique=True, max_length=255)),
('creation_time', models.DateTimeField(auto_now_add=True)),
],
options={
Expand Down
4 changes: 2 additions & 2 deletions db_mutex/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ class DBMutex(models.Model):
Models a mutex lock with a ``lock_id`` and a ``creation_time``.

:type lock_id: str
:param lock_id: A unique CharField with a max length of 256
:param lock_id: A unique CharField with a max length of 255

:type creation_time: datetime
:param creation_time: The creation time of the mutex lock
"""
lock_id = models.CharField(max_length=256, unique=True)
lock_id = models.CharField(max_length=255, unique=True)
creation_time = models.DateTimeField(auto_now_add=True)

class Meta:
Expand Down