Fakultas Ilmu Komputer UI

Commit 866a0d36 authored by Izzan Fakhril Islam's avatar Izzan Fakhril Islam
Browse files

fixing migration errors

parent fb01f92b
Pipeline #26143 passed with stages
in 13 minutes and 24 seconds
# -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-11-14 10:36
# Generated by Django 1.11.17 on 2019-11-27 14:19
from __future__ import unicode_literals
from django.db import migrations, models
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-11-14 10:40
# Generated by Django 1.11.17 on 2019-11-27 14:19
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
......@@ -55,7 +56,7 @@ class Migration(migrations.Migration):
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('email', models.EmailField(max_length=254)),
('uid', models.CharField(max_length=255)),
('uid', models.CharField(default=uuid.uuid4, max_length=255)),
],
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-11-14 11:36
# Generated by Django 1.11.17 on 2019-11-27 14:26
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
import django.utils.timezone
class Migration(migrations.Migration):
......@@ -13,9 +13,10 @@ class Migration(migrations.Migration):
]
operations = [
migrations.AlterField(
model_name='token',
name='uid',
field=models.CharField(default=uuid.uuid4, max_length=255),
migrations.AddField(
model_name='user',
name='last_login',
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
preserve_default=False,
),
]
......@@ -27,6 +27,7 @@ class Token(models.Model):
class User(models.Model):
email = models.EmailField(primary_key=True)
last_login = models.DateTimeField(auto_now_add=True)
REQUIRED_FIELDS = []
USERNAME_FIELD = 'email'
is_anonymous = False
......
......@@ -18,7 +18,7 @@
@import url(https://fonts.googleapis.com/css?family=Roboto|Roboto+Slab);
.container, .footer-down, .header-up{
font-family: "Roboto", "sans-serif";
font-weight: normal;
font-weight: bold;
}
</style>
......
......@@ -17,7 +17,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{% url 'tutorial-7:index' %}" style="color: black">Tutorial 7 PMPL</a>
<a class="navbar-brand" href="{% url 'tutorial-7:index' %}" style="color: black">Tutorial 7 PMPL Hehe</a>
</div>
</div>
</nav>
......@@ -22,7 +22,7 @@
<br>
{% else %}
<form method="POST" action="{% url 'tutorial-7:send_login_email' %}">
Enter your email to log in: <input id="email" name="email" type="text"/>
Enter your email to log in here: <input id="email" name="email" type="text"/>
{% csrf_token %}
</form>
{% endif %}
......
......@@ -77,7 +77,7 @@ def add_todo_commentary(request):
comment=request.POST['comment'],
date=date
)
return HttpResponseRedirect(reverse('tutorial-2:index'))
return HttpResponseRedirect(reverse('tutorial-7:index'))
except (ValueError, ValidationError) as e:
print(type(e))
todo_commentary = TodoListCommentary.objects.all().values()
......
Supports Markdown
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