Django admin page, user dropdown shows (None) when adding record, any idea? -
i have 2 model, both of them inherit abstractnonentity
, like
class br(abstractnonentity): ... class ms(abstractnonentity): ...
and class abstractnonentity
defined below
class abstractnonentity(globalidmixin, createdonmixin): creator = models.foreignkey(user, related_name='%(class)s_created_objects', verbose_name='creator') ...
on admin page, when add br
class, creator
show user drop-down, when add ms
class, creator
shows (none) , no drop-down.
Comments
Post a Comment