Compare commits

..

No commits in common. "adc0fd4d5e05b4bdb15ec2b98fd04c1f0ffae653" and "1a70c1437eb63a34ddda0a9dfa6bd3446054ca4d" have entirely different histories.

2 changed files with 2 additions and 8 deletions

View File

@ -24,13 +24,7 @@
</span> </span>
</div> </div>
<div class="LP-PlaceTeaser__Description"> <div class="LP-PlaceTeaser__Description">
<p class="LP-Paragraph"> <p class="LP-Paragraph">{{place.description|truncatechars:210|truncatewords:-1}}</p>
{% if place.description|length > 210 %}
{{place.description|truncatechars:210|truncatewords:-1}}
{% else %}
{{place.description}}
{% endif %}
</p>
</div> </div>
<div class="LP-PlaceTeaser__Icons"> <div class="LP-PlaceTeaser__Icons">
<ul class="LP-Icon__List"> <ul class="LP-Icon__List">

View File

@ -63,7 +63,7 @@ class PlaceDetailView(IsAuthenticated, View):
class HomeView(View): class HomeView(View):
def get(self, request, *args, **kwargs): 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 = { context = {
'place_list': place_list 'place_list': place_list
} }