Skip to content

Commit

Permalink
Update column id to pk
Browse files Browse the repository at this point in the history
  • Loading branch information
dyohan9 committed Sep 2, 2019
1 parent 88d0a8a commit 10d7a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bothub/common/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@staff_member_required
def download_bot_data(self, update_id): # pragma: no cover
update = get_object_or_404(RepositoryUpdate, id=update_id)
update = get_object_or_404(RepositoryUpdate, pk=update_id)
if not update.trained_at:
raise ValidationError('Update #{} not trained at.'.format(update.id))
response = HttpResponseRedirect(update.get_bot_data())
Expand Down

0 comments on commit 10d7a84

Please sign in to comment.