class QuestionAdmin(admin.ModelAdmin):
ordering = ['date_created']
search_fields = ['question_text']
class ChoiceAdmin(admin.ModelAdmin):
autocomplete_fields = ['question']
creator = serializers.SerializerMethodField()
def get_creator(self, obj):
return {"creator": "отредактированная информация в переменной 'creator'"}