Commit d0f368da authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

feature: add conversation

parent 8759dad5
Pipeline #3870 passed with stage
in 27 seconds
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-12 14:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_conversation', '0003_auto_20190503_0323'),
('djangoldp_joboffer', '0003_auto_20190524_1432'),
]
operations = [
migrations.AddField(
model_name='joboffer',
name='conversation',
field=models.ManyToManyField(blank=True, to='djangoldp_conversation.Conversation'),
),
]
from django.conf import settings
from django.db import models
from djangoldp_conversation.models import Conversation
from djangoldp.models import Model
from djangoldp_skill.models import Skill
......@@ -12,10 +13,11 @@ class JobOffer(Model):
skills = models.ManyToManyField(Skill)
creationDate = models.DateField(auto_now_add=True)
closingDate = models.DateField()
conversation = models.ManyToManyField(Conversation, blank=True)
class Meta:
auto_author = 'author'
nested_fields = ["skills"]
nested_fields = ["skills", "conversation"]
container_path = 'job-offers/'
rdf_type = 'hd:joboffer'
depth = 0
......
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