Skip to content

Commit

Permalink
Fix crash on tap 'end keg' button.
Browse files Browse the repository at this point in the history
Closes #326.
  • Loading branch information
mik3y committed Jan 3, 2015
1 parent b4ecc02 commit 63b58e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pykeg/web/kegadmin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def tap_detail(request, tap_id):
elif 'submit_end_keg_form' in request.POST:
end_keg_form = forms.EndKegForm(request.POST)
if end_keg_form.is_valid():
old_keg = request.backend.end_keg(tap)
old_keg = request.backend.end_keg(tap.current_keg)
messages.success(request, 'Keg %s was ended.' % old_keg.id)

elif 'submit_record_drink' in request.POST:
Expand Down

0 comments on commit 63b58e7

Please sign in to comment.