flask-lastuser icon indicating copy to clipboard operation
flask-lastuser copied to clipboard

UserMixin class needed

Open jace opened this issue 11 years ago • 1 comments

Should add user column and provide stubs for user merging.

jace avatar Apr 13 '13 12:04 jace

All models that currently have a user_id should inherit from UserMixin. Unresolved ambiguity: what happens to backrefs? If the relationship is defined in the mixin, there's no place to define a backref from. Should the mixin auto-add a backref using the tablename?

Or should UserMixin not provide the column at all, leaving that to the model?

jace avatar Apr 13 '13 12:04 jace