Commit 8d50825c authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

update: nest project to user

parent 6d61b7b4
# -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2019-12-11 15:52
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('djangoldp_project', '0003_auto_20191209_1712'),
]
operations = [
migrations.AlterField(
model_name='member',
name='user',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='projects', to=settings.AUTH_USER_MODEL),
),
]
......@@ -68,7 +68,7 @@ class Project(Model):
class Member(Model):
project = models.ForeignKey(Project, on_delete=models.CASCADE, related_name='members')
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name='projects')
name = models.CharField(max_length=255, null=True, blank=True)
is_admin = models.BooleanField(default=False)
......
USER_NESTED_FIELDS = ['projects']
\ No newline at end of file
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