Commit 4363b246 authored by Gaëlle Morin's avatar Gaëlle Morin

fix: validation changed on fields

parent 564ff32e
Pipeline #3616 passed with stage
in 27 seconds
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-24 14:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_joboffer', '0002_auto_20190404_1451'),
]
operations = [
migrations.AlterField(
model_name='joboffer',
name='closingDate',
field=models.DateField(),
),
migrations.AlterField(
model_name='joboffer',
name='description',
field=models.TextField(),
),
migrations.AlterField(
model_name='joboffer',
name='skills',
field=models.ManyToManyField(to='djangoldp_skill.Skill'),
),
migrations.AlterField(
model_name='joboffer',
name='title',
field=models.CharField(max_length=255),
),
]
......@@ -7,11 +7,11 @@ from djangoldp_skill.models import Skill
class JobOffer(Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
title = models.CharField(max_length=255, blank=True, null=True)
description = models.CharField(max_length=255, blank=True, null=True)
skills = models.ManyToManyField(Skill, blank=True)
title = models.CharField(max_length=255)
description = models.TextField()
skills = models.ManyToManyField(Skill)
creationDate = models.DateField(auto_now_add=True)
closingDate = models.DateField(blank=True, null=True)
closingDate = models.DateField()
class Meta:
auto_author = 'author'
......
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