Commit 23411f78 authored by Benoit Alessandroni's avatar Benoit Alessandroni

Renaming project directory from coopstarter to coopstarter_data

parent b4af4f89
from django.contrib import admin
from .models import Faq, Collective, Testimony, Event
\ No newline at end of file
from django.contrib import admin
from .models import Resource
......@@ -3,9 +3,9 @@ from djangoldp.models import Model
class Resource (Model):
# Mandatory Fields
title = models.CharField(verbose_name="Title")
title = models.CharField(max_length=32, verbose_name="Title")
format = models.CharField(max_length=10, choices=(('pdf', 'PDF'), ('video', 'Vidéo'),('document', 'Document'),('image', 'Image') ), verbose_name="Format")
publication_year = models.IntegerField(max_value=2019, min_value=1910, verbose_name="Publication Year")
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")
......@@ -18,16 +18,16 @@ class Resource (Model):
#booleanTest = models.BooleanField(default=False, verbose_name="Porteur de cellule")
description = models.TextField(verbose_name="Description")
iframe_link = models.TextField(verbose_name="Iframe link")
image = models.ImageField(blank=True, null=True, verbose_name="Photo")
#image = models.ImageField(blank=True, null=True, verbose_name="Photo")
#Classification Fields
target = models.CharField(max_length=32, choices=(('mentor', 'Mentor'), ('entrepreneur', 'Entrepreneur'), ('public', 'public')), verbose_name="Target audience")
type = models.CharField(max_length=32, choices=(('mentor', 'Mentor')), verbose_name="Type of content")
type = models.CharField(max_length=32, choices=(('mentor', 'Mentor'), ('entrepreneur', 'Entrepreneur')), verbose_name="Type of content")
# step = models.CharField(max_length=32, choices=(('step-1', 'Step 1'), ('step-2', 'Step 2'), ('step-3', 'Step 3'),('step-4', 'Step 4'), ('step-5', 'Step 5'), ('step-6', 'Step 6')), verbose_name="Step")
#friends = models.ManyToManyField("self")
sharing = models.CharField(max_length=32, choices=(('private', 'Private (nobody)'), ('public', 'Public (everybody)')), verbose_name="Sharing profile")
related = ManyToManyField("self", blank=True, null=True)
related = models.ManyToManyField("self", blank=True, null=True)
def __str__(self):
return self.title
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