Commit 09711333 authored by Calum Mackervoy's avatar Calum Mackervoy

added collective as another contributor

parent 030254ac
Pipeline #7131 passed with stage
in 27 seconds
......@@ -36,6 +36,7 @@ class ProjectFactory(factory.django.DjangoModelFactory):
customer = factory.SubFactory(CustomerFactory)
businessProvider = factory.SubFactory(ContributorFactory)
associate = factory.SubFactory(ContributorFactory)
collective = factory.SubFactory(ContributorFactory)
jabberID = factory.Faker('email')
jabberRoom = True
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-01-23 11:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('djangoldp_project', '0009_auto_20200123_1152'),
]
operations = [
migrations.AddField(
model_name='project',
name='collective',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='projects_collective', to='djangoldp_project.Contributor'),
),
]
......@@ -59,6 +59,8 @@ class Project(Model):
related_name='projects_business_provider')
associate = models.ForeignKey(Contributor, blank=True, null=True, on_delete=models.DO_NOTHING,
related_name='projects_associate')
collective = models.ForeignKey(Contributor, blank=True, null=True, on_delete=models.DO_NOTHING,
related_name='projects_collective')
jabberID = models.CharField(max_length=255, blank=True, null=True)
jabberRoom = models.BooleanField(default=True)
......
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