imagestore added

This commit is contained in:
Johnson Chetty 2012-08-31 12:20:32 +02:00
parent 08d11bd01a
commit 74ab5043d0
4 changed files with 8 additions and 1 deletions

View File

@ -191,6 +191,8 @@ class Relation(models.Model):
class Training(models.Model):
# title = models.CharField(max_length=255)
# desc= models.TextField(max_length=2048)
person = models.ForeignKey("Person")
area = models.CharField(max_length=255) # Choices?
with_whom = models.CharField(max_length=255) # Is this a foreign key to person, or group, or just text field like now?
@ -199,6 +201,9 @@ class Training(models.Model):
until_when = models.DateField(blank=True, null=True)
locations = generic.GenericRelation("Location")
#def __unicode__(self):
#\ return self.name
class Play(ItfModel):
title = models.CharField(max_length=512)

View File

@ -191,6 +191,7 @@ INSTALLED_APPS = (
'insidepages',
# 'erang',
# 'erang_organised',
'imagestore',
'scriptbank',
'bestpractices',
'emailer',

View File

@ -52,7 +52,7 @@
<span class="orange">Nature of Work: </span>
<ul>
{% for work in nature_of_work %}
<li>{{ work }}</li>
<li>{{ work.name }} <br /> {{ work.name }} </li>
{% endfor %}
</ul>
</div>

View File

@ -23,3 +23,4 @@ twitter
-e git+git://github.com/pennersr/django-allauth.git#egg=django-allauth
-e git+git://github.com/pythonforfacebook/facebook-sdk.git#egg=facebook-sdk
django-avatar
imagestore