Show problem code in the problem list
This commit is contained in:
parent
23ac7817f7
commit
982048e16a
2 changed files with 14 additions and 1 deletions
|
@ -228,7 +228,7 @@ class ProblemAdmin(VersionAdmin):
|
|||
return form
|
||||
|
||||
def save_model(self, request, obj, form, change):
|
||||
super(ProblemAdmin, self).save_model(request, obj, form, change)
|
||||
super().save_model(request, obj, form, change)
|
||||
if form.changed_data and any(f in form.changed_data for f in ('is_public', 'points', 'partial')):
|
||||
self._rescore(request, obj.id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue