django - Zinnia Blog doesn't use custom auth user model -
i using zinnia blog module django app. have django app , have custom user model. have added following setting:
auth_user_model = 'account.member'
however, when try create new entry in blog foreign key constraint error.
exception type: integrityerror exception value: (1452, 'cannot add or update child row: foreign key constraint fails (`example`.`zinnia_entry_authors`, constraint `author_id_refs_id_410656e2874b02ff` foreign key (`author_id`) references `auth_user` (`id`))')
it references default auth model (which doesn't exist in database) instead of specified auth model. how make zinnia use correct table.
thanks.
Comments
Post a Comment