]> git.parisson.com Git - mezzo.git/commitdiff
Add period to project
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 19 Aug 2016 17:21:41 +0000 (19:21 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 19 Aug 2016 17:21:41 +0000 (19:21 +0200)
app/organization/project/admin.py
app/organization/project/migrations/0007_auto_20160819_1920.py [new file with mode: 0644]
app/organization/project/models.py
lib/mezzanine-agenda

index f0451cf6ed13ead2e5cd793ab9248c00cc603ca6..89f9c40a729175e0a94d1a60f1e64c5db41b0395 100644 (file)
@@ -32,6 +32,7 @@ class ProjectAdminDisplayable(DisplayableAdmin):
 
     fieldsets = deepcopy(ProjectAdmin.fieldsets)
     inlines = [ProjectImageInline, ProjectBlockInline, ProjectLinkInline, ]
-
+    filter_horizontal = ['persons', 'teams', 'organizations']
+    
 
 admin.site.register(Project, ProjectAdminDisplayable)
diff --git a/app/organization/project/migrations/0007_auto_20160819_1920.py b/app/organization/project/migrations/0007_auto_20160819_1920.py
new file mode 100644 (file)
index 0000000..22cb41c
--- /dev/null
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.7 on 2016-08-19 17:20
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('organization-project', '0006_auto_20160818_1656'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='project',
+            name='date_begin',
+            field=models.DateField(blank=True, null=True, verbose_name='begin date'),
+        ),
+        migrations.AddField(
+            model_name='project',
+            name='date_end',
+            field=models.DateField(blank=True, null=True, verbose_name='end date'),
+        ),
+    ]
index 4cb42c8dfe553591ff89df2f09470a5720cedc18..2922423b2e4ee602d67cdb3bb11e106ecf89fed2 100644 (file)
@@ -9,7 +9,7 @@ from organization.core.models import *
 from organization.team.models import Person, Team, Organization
 
 
-class Project(Displayable, RichText):
+class Project(Displayable, Period, RichText):
     """(Project description)"""
 
     lead_team = models.ForeignKey(Team, verbose_name=_('lead team'), related_name='leader_projects', blank=True, null=True)
index 02dcb08dd9b735507ceec68a084fc07774a595d1..85265dec14e637e41a2f8adfc64b4b62a990ce95 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 02dcb08dd9b735507ceec68a084fc07774a595d1
+Subproject commit 85265dec14e637e41a2f8adfc64b4b62a990ce95