performanced order; sponsors logo size
This commit is contained in:
parent
89f138168e
commit
defc797963
|
@ -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,
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user