Browse Source

Fix la vue editKeg

pull/4/head
Yoann Piétri 7 years ago
parent
commit
a9f0d20779
  1. 2
      CHANGELOG.md
  2. 6
      gestion/forms.py
  3. 2
      templates/footer.html

2
CHANGELOG.md

@ -1,3 +1,5 @@
## v3.5.2
* Fix la vue editKeg
## v3.5.1
* Les catégories apapraissent que si elles sont pas vides
* Nombre de produits affiché sur la liste des catégories

6
gestion/forms.py

@ -46,9 +46,9 @@ class KegForm(forms.ModelForm):
"""
def __init__(self, *args, **kwargs):
super(KegForm, self).__init__(*args, **kwargs)
self.fields['pinte'].queryset = Product.objects.filter(category=Product.P_PRESSION)
self.fields['demi'].queryset = Product.objects.filter(category=Product.D_PRESSION)
self.fields['galopin'].queryset = Product.objects.filter(category=Product.G_PRESSION)
self.fields['pinte'].queryset = Product.objects.filter(draft_category=Product.DRAFT_PINTE)
self.fields['demi'].queryset = Product.objects.filter(draft_category=Product.DRAFT_DEMI)
self.fields['galopin'].queryset = Product.objects.filter(draft_category=Product.DRAFT_GALOPIN)
class Meta:
model = Keg

2
templates/footer.html

@ -42,6 +42,6 @@
<li><a href="https://www.facebook.com/coopesmetz/" class="icon fa-facebook alt"><span class="label">Facebook</span></a></li>
</ul>
</section>
<p class="copyright">coope.rez v3.5.1 (release stable) &copy; 2018-2019 Yoann Pietri.</p>
<p class="copyright">coope.rez v3.5.2 (release stable) &copy; 2018-2019 Yoann Pietri.</p>

Loading…
Cancel
Save