3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-12-23 07:23:47 +00:00

Fix price profile deleteion. Fix #12

This commit is contained in:
Yoann Pétri 2019-08-27 18:51:24 +02:00
parent c875881c63
commit b26b304672

View file

@ -242,6 +242,6 @@ def delete_price_profile(request,pk):
"""
price_profile = get_object_or_404(PriceProfile, pk=pk)
message = "Le profil de prix " + price_profile.name + " a bien été supprimé"
price_pofile.delete()
price_profile.delete()
messages.success(request, message)
return redirect(reverse('preferences:priceProfilesIndex'))