Evaluation table reverse
This commit is contained in:
parent
fa6cd89fe2
commit
dc3954b38e
@ -294,7 +294,7 @@ class EvaluationAttributeAdmin(admin.ModelAdmin):
|
||||
list_filter = ('evaluation',)
|
||||
|
||||
def copy_attributes(self, request, queryset):
|
||||
for objectAttr in queryset:
|
||||
for objectAttr in reversed(queryset):
|
||||
objectAttr.pk = None
|
||||
objectAttr.name = objectAttr.name + "_copy"
|
||||
objectAttr.save()
|
||||
|
Loading…
Reference in New Issue
Block a user