change report() function in views to create_report()
This commit is contained in:
parent
dac67f8fc6
commit
c8286778bc
4 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
EMAIL_HOST_USER=accountemail@youremail.com
|
||||
EMAIL_HOST_PASSWORD=yourpassword
|
||||
SUBMIT_REPORT_DESTINATION_EMAIL=administratoremail@yourmail.com
|
||||
SUBMIT_REPORT_FROM_EMAIL=from-address@yourmail.com
|
||||
EMAIL_HOST_USER=reimbursinator@gmail.com
|
||||
EMAIL_HOST_PASSWORD=Frank12345
|
||||
SUBMIT_REPORT_DESTINATION_EMAIL=rdikkala@pdx.edu
|
||||
SUBMIT_REPORT_FROM_EMAIL=rdikkala@pdx.edu
|
||||
|
|
|
@ -5,7 +5,7 @@ from rest_framework.urlpatterns import format_suffix_patterns
|
|||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('report', views.report),
|
||||
path('report', views.create_report),
|
||||
path('reports', views.reports),
|
||||
path('report/<int:report_pk>', views.report_detail),
|
||||
path('report/<int:report_pk>/final', views.finalize_report),
|
||||
|
|
|
@ -112,7 +112,7 @@ def generate_named_fields_for_section(fields):
|
|||
return result
|
||||
|
||||
@api_view(['POST'])
|
||||
def report(request):
|
||||
def create_report(request):
|
||||
"""
|
||||
Generates a new empty report for the current user and returns it
|
||||
in json format. The title of the report should be provided as
|
||||
|
|
BIN
back/db.sqlite3
BIN
back/db.sqlite3
Binary file not shown.
Loading…
Reference in a new issue