From 80e6b2622ebea1cd5713dabff67e55659cf18a02 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Fri, 5 Apr 2013 15:06:04 +0530 Subject: [PATCH] create rough template for events --- itf/events/models.py | 3 +- itf/templates/modules/events/event.html | 86 +++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 1 deletion(-) diff --git a/itf/events/models.py b/itf/events/models.py index 4635dba..815f92c 100644 --- a/itf/events/models.py +++ b/itf/events/models.py @@ -7,7 +7,7 @@ from django.contrib.localflavor.in_.forms import INZipCodeField from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic from itfprofiles.models import City, Location, Production, TheatreGroup, Person - +from mediagallery.models import GalleryAlbum EVENT_TYPE_CHOICES = ( @@ -41,6 +41,7 @@ class Event(ItfModel): tel_no = models.CharField(max_length=100, blank=True) production = models.ForeignKey(Production, blank=True, null=True, help_text="If this is a showing of a production...") + galleries = generic.GenericRelation(GalleryAlbum) people = models.ManyToManyField(Person, blank=True, null=True, through="PersonEvent") image = models.ImageField(upload_to='images/', blank=True, null=True) groups = models.ManyToManyField(TheatreGroup, blank=True, null=True, through="GroupEvent") diff --git a/itf/templates/modules/events/event.html b/itf/templates/modules/events/event.html index e69de29..17f1479 100644 --- a/itf/templates/modules/events/event.html +++ b/itf/templates/modules/events/event.html @@ -0,0 +1,86 @@ +{% load thumbnail %} + + + + + + +
+

{{ name }}

+ +

{{ oneliner }}

+ +
Description: : {{ description }}
+ More>> + +
+ +
+ +
+ +
+ +
+ +