er, ups
This commit is contained in:
parent
7f785f3ff8
commit
4d0e8fee31
|
@ -81,13 +81,10 @@ class ItfModel(models.Model):
|
||||||
return self.get(self._get_fields().keys())
|
return self.get(self._get_fields().keys())
|
||||||
|
|
||||||
def insidepage_dict(self):
|
def insidepage_dict(self):
|
||||||
if not exists(self.get_template_path()):
|
|
||||||
html = "Template not found at: " + self.get_template_path()
|
|
||||||
else:
|
|
||||||
try:
|
try:
|
||||||
html = render_to_string(self.get_template_path(), self.info_dict())
|
html = render_to_string(self.get_template_path(), self.info_dict())
|
||||||
except:
|
except:
|
||||||
html = "Template render error."
|
html = "Template path not found at : " + self.get_template_path()
|
||||||
return {
|
return {
|
||||||
'url': self.get_absolute_url(),
|
'url': self.get_absolute_url(),
|
||||||
'title': self.get_title(),
|
'title': self.get_title(),
|
||||||
|
|
|
@ -80,6 +80,9 @@ class Participant(ItfModel):
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
|
def get_title(self):
|
||||||
|
return self.title
|
||||||
|
|
||||||
def list_dict(self):
|
def list_dict(self):
|
||||||
return {
|
return {
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
|
@ -91,7 +94,7 @@ class Participant(ItfModel):
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'name': self.name,
|
'name': self.name,
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
'short_bio': self.short_bio,
|
'short_bio': self.short_bio
|
||||||
}
|
}
|
||||||
|
|
||||||
class Talk(models.Model):
|
class Talk(models.Model):
|
||||||
|
|
0
itf/templates/modules/festival/project.html
Normal file
0
itf/templates/modules/festival/project.html
Normal file
Loading…
Reference in New Issue
Block a user