С наступающим! В модели есть два класса Person и PersonInfo и в Классе Person поле person = FK(PersonInfo). В Классе PersonInfo есть поле code = IntegerField, так вот как мне при регистрации в админке достать с поля person значение поля code с класса PersonInfo
@admin.register(PersonInformation)
class InformationPerson(admin.ModelAdmin):
list_display = ('person', 'person__code') пробовал так, ошибка