Commit c556a8a2 authored by Hayat's avatar Hayat Committed by Bengfort
Browse files

add uuid field to schedule

parent ef50e5c7
# Generated by Django 3.1.6 on 2021-02-22 14:39
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='schedule',
name='uuid',
field=models.UUIDField(default=uuid.uuid4, editable=False, unique=True),
),
]
......@@ -17,6 +17,7 @@
# <http://www.gnu.org/licenses/>.
import datetime
import uuid
from django.db import models
from django.utils import formats
......@@ -24,6 +25,7 @@ from django.utils.translation import gettext_lazy as _
class Schedule(models.Model):
uuid = models.UUIDField(default=uuid.uuid4, unique=True, editable=False)
title = models.CharField(_('Title'), max_length=254)
def __str__(self):
......
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