Imagine there is a model:
class OrgUnit(models.Model):
name = models.CharField(...)
type = models.CharField(...)
address = models.TextField(...)
active = models.BooleanField(...)
sapid = models.CharField(...)
parent = models.ForeignKey('self', ...)
Register it in admin:
@admin.register(OrgUnit)
class OrgUnitAdmin(admin.ModelAdmin):
pass
Usually in inline displayed some queryset
. But I need to display an errors list (python list). The list example: ['No orgunit name', 'No orgunit type']
. No foreign key, no relations at all.
How could I do that?