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)
|
time = models.TimeField(null=True, blank=True)
|
||||||
meeting_day = models.ForeignKey("MeetingDay")
|
meeting_day = models.ForeignKey("MeetingDay")
|
||||||
|
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
ordering = ['meeting_day__date', 'time']
|
||||||
|
|
||||||
def get_dict(self):
|
def get_dict(self):
|
||||||
return {
|
return {
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
{% if sponsors %}
|
{% if sponsors %}
|
||||||
Supported by: <br />
|
Supported by: <br />
|
||||||
{% for s in sponsors %}
|
{% 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>
|
<a href="{{ s.url }}" target="_blank" /><img alt="{{ s.name }}" src="{{ thumb.url }}" /></a>
|
||||||
{% endthumbnail %}
|
{% endthumbnail %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user