cosmettic fixes

This commit is contained in:
Jens Timmerman 2018-09-24 21:49:05 +02:00
parent 3562c7aadd
commit e21b7ec33d
4 changed files with 11 additions and 7 deletions

View File

@ -28,13 +28,17 @@ The object of this django app is to keep track of which goods you own, when they
# feature requests
## High
- shopping list based on min quantity
- make expirations a calendar view, generate ics file to import
- add locations to items
- public wishlist
- one off shoping list
- add easy consume view
- save date consumed in history
# medium
- make it look something like this https://getbootstrap.com/docs/4.0/examples/dashboard/
- one off shoping list
- easy clearing of shopping list
- correct capilisation
## low
- add recepies

View File

@ -9,7 +9,7 @@
<h2>{{ date.grouper|date:"d F Y" }}</h2>
<ul>
{% for pi in date.list %}
<li><a href="{% url 'admin:inventory_pantryitemline_change' pi.id %}">{{ pi}}</a></li>
<li><a href="{% url 'admin:inventory_pantryitemline_change' pi.id %}">{{ pi|title}}</a></li>
{% endfor %}
</ul>
</div>

View File

@ -5,7 +5,7 @@
<ul>
{% for pi in pis%}
<li>
{{ pi }} (We have
{{ pi|title }} (We have
{{ pi.total_quantity }} {{pi.unit}} but we want at least
{{ pi.min_quantity }} {{pi.unit }})
</li>

View File

@ -32,4 +32,4 @@ class Expirations(generic.ListView):
context_object_name = 'pis'
def get_queryset(self):
return PantryItemLine.objects.exclude(expiry_date__isnull=True).order_by('expiry_date')
return PantryItemLine.objects.exclude(expiry_date__isnull=True).exclude(quantity=0).order_by('expiry_date')