performanced order; sponsors logo size

This commit is contained in:
Sanj 2012-03-10 07:23:52 +05:30
parent 89f138168e
commit defc797963
2 changed files with 5 additions and 1 deletions

View File

@ -171,6 +171,10 @@ class MeetingPerformance(models.Model):
time = models.TimeField(null=True, blank=True)
meeting_day = models.ForeignKey("MeetingDay")
class Meta:
ordering = ['meeting_day__date', 'time']
def get_dict(self):
return {
'title': self.title,

View File

@ -43,7 +43,7 @@
{% if sponsors %}
Supported by: <br />
{% for s in sponsors %}
{% thumbnail s.logo "x30" crop="center" as thumb %}
{% thumbnail s.logo "120x" crop="center" as thumb %}
<a href="{{ s.url }}" target="_blank" /><img alt="{{ s.name }}" src="{{ thumb.url }}" /></a>
{% endthumbnail %}
{% endfor %}