Project for the UPV to develop an app like BlaBlaCar but only for UPV people.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fixed #18

+3 -2
+2 -1
upvcarshare/journeys/managers.py
··· 187 187 "departure__gte": departure_lower, 188 188 })) 189 189 now = timezone.now() 190 - queryset = self.available(user=user, ignore_full=ignore_full).exclude(user=user, departure__lt=now) \ 190 + queryset = self.available(user=user, ignore_full=ignore_full)\ 191 + .exclude(user=user, departure__lt=now, disabled=True) \ 191 192 .filter(reduce(lambda x, y: x | y, conditions)) \ 192 193 .order_by("departure") 193 194 return queryset
+1 -1
upvcarshare/templates/journeys/create.smart.html
··· 73 73 {% endif %} 74 74 {% endfor %} 75 75 <div class="form-group"> 76 - <div class="offset-sm-2 col-sm-8"> 76 + <div class="col-sm-2 pull-right"> 77 77 <button type="submit" class="btn btn-success">{% trans "Guardar" %}</button> 78 78 <a href="{% url "journeys:list" %}" class="btn btn-danger">{% trans "Volver" %}</a> 79 79 </div>