added messages support, more clean html

This commit is contained in:
wcolmenares 2019-03-18 23:25:32 -04:00
parent 9529067c8b
commit 318feb7e97
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# Generated by Django 2.1.2 on 2019-03-16 03:23
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('jobs', '0003_auto_20181020_0622'),
]
operations = [
migrations.CreateModel(
name='JobMessage',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('text', models.TextField()),
('date', models.DateTimeField(auto_now_add=True)),
('receiver', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='receiver', to=settings.AUTH_USER_MODEL)),
('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sender', to=settings.AUTH_USER_MODEL)),
],
),
]

View file

@ -0,0 +1,18 @@
# Generated by Django 2.1.2 on 2019-03-17 02:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobs', '0004_jobmessage'),
]
operations = [
migrations.AddField(
model_name='job',
name='active',
field=models.BooleanField(default=True),
),
]