Compare commits
No commits in common. "adc0fd4d5e05b4bdb15ec2b98fd04c1f0ffae653" and "1a70c1437eb63a34ddda0a9dfa6bd3446054ca4d" have entirely different histories.
adc0fd4d5e
...
1a70c1437e
@ -24,13 +24,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="LP-PlaceTeaser__Description">
|
||||
<p class="LP-Paragraph">
|
||||
{% if place.description|length > 210 %}
|
||||
{{place.description|truncatechars:210|truncatewords:-1}}
|
||||
{% else %}
|
||||
{{place.description}}
|
||||
{% endif %}
|
||||
</p>
|
||||
<p class="LP-Paragraph">{{place.description|truncatechars:210|truncatewords:-1}}</p>
|
||||
</div>
|
||||
<div class="LP-PlaceTeaser__Icons">
|
||||
<ul class="LP-Icon__List">
|
||||
|
@ -63,7 +63,7 @@ class PlaceDetailView(IsAuthenticated, View):
|
||||
|
||||
class HomeView(View):
|
||||
def get(self, request, *args, **kwargs):
|
||||
place_list = Place.objects.all().order_by('-submitted_when')[:10]
|
||||
place_list = Place.objects.all().order_by('submitted_when')[:10]
|
||||
context = {
|
||||
'place_list': place_list
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user