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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -