Skip to content

Commit

Permalink
Update judge/admin/profile.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tudor Brindus <[email protected]>
  • Loading branch information
Ninjaclasher and Xyene authored Oct 28, 2023
1 parent 34fe425 commit 305259e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/admin/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def has_add_permission(self, request, obj=None):
# If an admin wants to go directly to the delete endpoint to delete a profile, more
# power to them.
def render_change_form(self, request, context, **kwargs):
context.update({'show_delete': False})
context['show_delete'] = False
return super().render_change_form(request, context, **kwargs)

def get_queryset(self, request):
Expand Down

0 comments on commit 305259e

Please sign in to comment.