Skip to content

Commit

Permalink
Add drag-and-drop image upload support to create_view
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnans2006 committed Jun 7, 2024
1 parent a700e3d commit 06a0ed7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tin/apps/assignments/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,9 @@ def create_view(request, course_id):
{
"assignment_form": assignment_form,
"course": course,
"action": "add",
"nav_item": "Create assignment",
"action": "add",
"imgbb_api_key": settings.IMGBB_API_KEY,
},
)

Expand Down Expand Up @@ -239,9 +240,9 @@ def edit_view(request, assignment_id):
"course": assignment.course,
"folder": assignment.folder,
"assignment": assignment,
"imgbb_api_key": settings.IMGBB_API_KEY,
"action": "edit",
"nav_item": "Edit",
"action": "edit",
"imgbb_api_key": settings.IMGBB_API_KEY,
},
)

Expand Down

0 comments on commit 06a0ed7

Please sign in to comment.