Fixes rate action

This commit is contained in:
Mouse Reeve
2021-01-18 09:57:44 -08:00
parent debc9696e1
commit c7b03fec5a
5 changed files with 39 additions and 11 deletions

View File

@ -21,7 +21,7 @@ from .helpers import is_api_request, is_bookworm_request, object_visible_to_user
# pylint: disable= no-self-use
class Status(View):
''' the view for *posting* '''
''' get posting '''
def get(self, request, username, status_id):
''' display a particular status (and replies, etc) '''
try:
@ -52,10 +52,11 @@ class Status(View):
@method_decorator(login_required, name='dispatch')
class CreateStatus(View):
''' get posting '''
''' the view for *posting* '''
def post(self, request, status_type):
''' create status of whatever type '''
status_type = status_type[0].upper() + status_type[1:]
try:
form = getattr(forms, '%sForm' % status_type)(request.POST)
except AttributeError: