Commit 2b14456b authored by Benoit Alessandroni's avatar Benoit Alessandroni

Fixing fixtures

parent 475ab6fc
......@@ -5,7 +5,7 @@
"name":"Resource request",
"description":"I'd like to see a resource about the unknown topic of field 2 and 7",
"language":1,
"country":"FR",
"country":1,
"skills":"Organisation and more efficiency while coding the thing",
"organisation": 2,
"submitter":1,
......@@ -22,7 +22,7 @@
"name":"Resource request 2",
"description":"I'd like to see a resource about the unknown topic of field 3 and 4",
"language":2,
"country":"EN",
"country":2,
"skills":"Organisation and more efficiency while coding the thing",
"organisation": 2,
"submitter":1,
......@@ -39,7 +39,7 @@
"name":"Resource request 3",
"description":"I'd like to see a resource about the unknown topic of field 1 and 5",
"language":1,
"country":"FR",
"country":1,
"skills":"Organisation and more efficiency while coding the thing",
"organisation": 1,
"submitter":1,
......
......@@ -5,7 +5,7 @@
"name":"Value proposition design",
"publication_year":2000,
"language":1,
"country":"FR",
"country":1,
"uri":"https://www.strategyzer.com/books/value-proposition-design",
"author":"Alex Osterwalder",
"skills":"Is vulputate. Aliquam mollis consectetur enim, et aliquet lorem. Fusce quis placerat urna. Vestibulum pharetra rhoncus felis at mollis. Mauris purus diam, iaculis at massa vel, lacinia sollicitudin mauris. Nullam ultricies, ligula quis varius aliquam, eros mi ultric",
......@@ -33,7 +33,7 @@
"name":"Business Plan Spreadsheet",
"publication_year":2018,
"language":1,
"country":"FR",
"country":1,
"uri":"https://docs.google.com/spreadsheets/d/1VYNmqo7lm07q5JyKNw5NFf6QMhmhH9osIPjFwjaMipM/",
"author":"Blaise Balaise",
"skills":"Etiam a hendrerit leo. In fermentum quis libero quis vulputate. Aliquam mollis consectetur enim, et aliquet lorem. Fusce quis placerat urna. Vestibulum pharetra rhoncus",
......@@ -61,7 +61,7 @@
"name":"First steps to be a mentor",
"publication_year":2009,
"language":2,
"country":"EN",
"country":2,
"uri":"https://docs.google.com/spreadsheets/d/1VYNmqo7lm07q5JyKNw5NFf6QMhmhH9osIPjFwjaMipM/",
"author":"Benito Blaise",
"skills":"Etiam a hendrerit leo. In fermentum quis libero quis vulputate. Aliquam mollis consectetur enim, et aliquet lorem. Fusce quis placerat urna. Vestibulum pharetra rhoncus",
......@@ -91,7 +91,7 @@
"name":"Cooperative statuses in France",
"publication_year":2003,
"language":2,
"country":"EN",
"country":2,
"uri":"https://docs.google.com/spreadsheets/d/1VYNmqo7lm07q5JyKNw5NFf6QMhmhH9osIPjFwjaMipM/",
"author":"Balzor Troto",
"skills":"Etiam a hendrerit leo. In fermentum quis libero quis vulputate. Aliquam mollis consectetur enim, et aliquet lorem. Fusce quis placerat urna. Vestibulum pharetra rhoncus",
......@@ -121,7 +121,7 @@
"name":"Cooperative governance issue",
"publication_year":2004,
"language":1,
"country":"FR",
"country":1,
"uri":"https://docs.google.com/spreadsheets/d/1VYNmqo7lm07q5JyKNw5NFf6QMhmhH9osIPjFwjaMipM/",
"author":"Vitali Breshko",
"skills":"Etiam a hendrerit leo. In fermentum quis libero quis vulputate. Aliquam mollis consectetur enim, et aliquet lorem. Fusce quis placerat urna. Vestibulum pharetra rhoncus",
......@@ -154,7 +154,7 @@
"name":"Starting a cooperative the good way",
"publication_year":2009,
"language":2,
"country":"EN",
"country":2,
"uri":"https://docs.google.com/spreadsheets/d/1VYNmqo7lm07q5JyKNw5NFf6QMhmhH9osIPjFwjaMipM/",
"author":"Balzor Troto",
"skills":"Etiam a hendrerit leo. In fermentum quis libero quis vulputate. Aliquam mollis consectetur enim, et aliquet lorem. Fusce quis placerat urna. Vestibulum pharetra rhoncus",
......@@ -184,7 +184,7 @@
"name":"Is cooperativism done the right way ?",
"publication_year":2002,
"language":1,
"country":"FR",
"country":1,
"uri":"https://docs.google.com/spreadsheets/d/1VYNmqo7lm07q5JyKNw5NFf6QMhmhH9osIPjFwjaMipM/",
"author":"Sigmund Freud",
"skills":"Etiam a hendrerit leo. In fermentum quis libero quis vulputate. Aliquam mollis consectetur enim, et aliquet lorem. Fusce quis placerat urna. Vestibulum pharetra rhoncus",
......@@ -214,7 +214,7 @@
"name":"Is Cooperativism fun ?",
"publication_year":1998,
"language":1,
"country":"FR",
"country":1,
"uri":"https://docs.google.com/spreadsheets/d/1VYNmqo7lm07q5JyKNw5NFf6QMhmhH9osIPjFwjaMipM/",
"author":"Charlie Chaplin",
"skills":"Etiam a hendrerit leo. In fermentum quis libero quis vulputate. Aliquam mollis consectetur enim, et aliquet lorem. Fusce quis placerat urna. Vestibulum pharetra rhoncus",
......@@ -246,7 +246,7 @@
"name":"Live the cooperative way",
"publication_year":1997,
"language":1,
"country":"FR",
"country":1,
"uri":"https://docs.google.com/spreadsheets/d/1VYNmqo7lm07q5JyKNw5NFf6QMhmhH9osIPjFwjaMipM/",
"author":"Raymond Zappata",
"skills":"Etiam a hendrerit leo. In fermentum quis libero quis vulputate. Aliquam mollis consectetur enim, et aliquet lorem. Fusce quis placerat urna. Vestibulum pharetra rhoncus",
......@@ -276,7 +276,7 @@
"name":"Cooperative meltdown in France",
"publication_year":2003,
"language":1,
"country":"FR",
"country":1,
"uri":"https://docs.google.com/spreadsheets/d/1VYNmqo7lm07q5JyKNw5NFf6QMhmhH9osIPjFwjaMipM/",
"author":"Anorld Schwarz",
"skills":"Etiam a hendrerit leo. In fermentum quis libero quis vulputate. Aliquam mollis consectetur enim, et aliquet lorem. Fusce quis placerat urna. Vestibulum pharetra rhoncus",
......@@ -306,7 +306,7 @@
"name":"More cooperative, more friendship",
"publication_year":2004,
"language":2,
"country":"EN",
"country":2,
"uri":"https://docs.google.com/spreadsheets/d/1VYNmqo7lm07q5JyKNw5NFf6QMhmhH9osIPjFwjaMipM/",
"author":"Bozo Elclono",
"skills":"Etiam a hendrerit leo. In fermentum quis libero quis vulputate. Aliquam mollis consectetur enim, et aliquet lorem. Fusce quis placerat urna. Vestibulum pharetra rhoncus",
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2019-10-03 11:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import djangoldp.fields
class Migration(migrations.Migration):
dependencies = [
('coopstarter_data', '0002_auto_20191002_1840'),
]
operations = [
migrations.CreateModel(
name='Country',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('urlid', djangoldp.fields.LDPUrlField(blank=True, null=True, unique=True)),
('code', models.CharField(max_length=2, verbose_name='ISO Code')),
('name', models.CharField(max_length=64, verbose_name='Country name')),
],
options={
'abstract': False,
'default_permissions': ('add', 'change', 'delete', 'view', 'control'),
},
),
migrations.AlterField(
model_name='mentor',
name='country',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='coopstarter_data.Country'),
),
migrations.AlterField(
model_name='request',
name='country',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='coopstarter_data.Country'),
),
migrations.AlterField(
model_name='resource',
name='country',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='coopstarter_data.Country'),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2019-10-03 14:59
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 = [
('coopstarter_data', '0003_auto_20191003_1155'),
]
operations = [
migrations.AlterField(
model_name='entrepreneur',
name='organisation',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='entrepreneurs', to='coopstarter_data.Organisation'),
),
migrations.AlterField(
model_name='mentor',
name='country',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mentors', to='coopstarter_data.Country'),
),
migrations.AlterField(
model_name='mentor',
name='organisation',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mentors', to='coopstarter_data.Organisation'),
),
migrations.AlterField(
model_name='review',
name='reviewer',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='reviews', to=settings.AUTH_USER_MODEL),
),
]
......@@ -224,9 +224,6 @@ def create_review(sender, instance, created, **kwargs):
instance.review = reviewInstance
instance.save()
if not created:
#TODO: If we are updating a resource which requires improvement,
#we can send a notification to the current reviewer for further review
#and switch the review to pending
if instance.review:
if instance.review.status == 'to_improve':
review = instance.review
......
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