mirror of
https://github.com/nanoy42/coope
synced 2024-12-23 15:33:45 +00:00
Fix price profile deleteion. Fix #12
This commit is contained in:
parent
c875881c63
commit
b26b304672
1 changed files with 1 additions and 1 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue