Show problem code in the problem list

This commit is contained in:
thanhluong 2020-05-02 18:43:50 +00:00
parent 23ac7817f7
commit 982048e16a
2 changed files with 14 additions and 1 deletions

View file

@ -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)