mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-17 13:46:35 +00:00
Fixes undefined variable error
This commit is contained in:
parent
f5e52d6a11
commit
2d1052766d
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ class CreateStatus(View):
|
|||
|
||||
def post(self, request, status_type, existing_status_id=None):
|
||||
"""create status of whatever type"""
|
||||
existing_status = None
|
||||
if existing_status_id:
|
||||
existing_status = get_object_or_404(
|
||||
models.Status.objects.select_subclasses(), id=existing_status_id
|
||||
|
|
Loading…
Reference in a new issue