Commit eefff66a authored by Benoit Alessandroni's avatar Benoit Alessandroni

Removing useless migration and adding proper init info

parent 3b21e3fb
......@@ -64,3 +64,12 @@ As some fixtures are provided to enrich the application database easily, the fol
```
python manage.py loaddata ../venv/lib/python3.6/site-packages/coopstarter_data/fixtures/*.json
```
If you have some issues with the previous command, such as `Field table does not exist` or equivalent, please run:
```
python manage.py makemigrations
python manage.py migrate
```
And run the loaddata command once more.
\ No newline at end of file
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-04-24 13:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Resource',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=32, verbose_name='Title')),
('format', models.CharField(choices=[('pdf', 'PDF'), ('video', 'Vidéo'), ('document', 'Document'), ('image', 'Image')], max_length=10, verbose_name='Format')),
('publication_year', models.IntegerField(verbose_name='Publication Year')),
('language', models.CharField(max_length=32, verbose_name='Language')),
('field', models.CharField(max_length=32, verbose_name='Field')),
('country', models.CharField(max_length=32, verbose_name='Country of publication')),
('uri', models.CharField(max_length=32, verbose_name='Location/weblink')),
('author', models.CharField(max_length=32, verbose_name='Author')),
('skills', models.TextField(verbose_name='Learning outcomes/skills')),
('description', models.TextField(verbose_name='Description')),
('iframe_link', models.TextField(verbose_name='Iframe link')),
('target', models.CharField(choices=[('mentor', 'Mentor'), ('entrepreneur', 'Entrepreneur'), ('public', 'public')], max_length=32, verbose_name='Target audience')),
('type', models.CharField(choices=[('mentor', 'Mentor'), ('entrepreneur', 'Entrepreneur')], max_length=32, verbose_name='Type of content')),
('sharing', models.CharField(choices=[('private', 'Private (nobody)'), ('public', 'Public (everybody)')], max_length=32, verbose_name='Sharing profile')),
('related', models.ManyToManyField(blank=True, related_name='_resource_related_+', to='coopstarter_data.Resource')),
],
options={
'abstract': False,
'default_permissions': ('add', 'change', 'delete', 'view', 'control'),
},
),
migrations.CreateModel(
name='Step',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=32, verbose_name='Title')),
],
options={
'abstract': False,
'default_permissions': ('add', 'change', 'delete', 'view', 'control'),
},
),
migrations.AddField(
model_name='resource',
name='steps',
field=models.ManyToManyField(to='coopstarter_data.Step'),
),
]
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