Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subclassing User #111

Open
TomKealy opened this issue Nov 3, 2016 · 2 comments
Open

Subclassing User #111

TomKealy opened this issue Nov 3, 2016 · 2 comments
Assignees

Comments

@TomKealy
Copy link

TomKealy commented Nov 3, 2016

Dear Federico,

I need to extend BaseCork, and User for a work project: I need to keep a count of the number of records in a database a User has seen.

I've made the changes I need, but I keep on getting an error when I try to import User from cork. Was it never intended that User would be inherited? If so, how do I disable this?

Yours

Tom

@FedericoCeratto FedericoCeratto self-assigned this Nov 3, 2016
@TomKealy
Copy link
Author

TomKealy commented Nov 3, 2016

Sorry to be a pain: I've deleted the parts where I've been using a custom User. I'm trying to get a custom Cork to work, but I keep on getting an invalid registration number error when I create a new account with the new TKCork class.

All I need it to do is add a 'annotated' field to the user data. There must be some easy way to inherit Cork and make my version of the class do that without having to re-write half of the class methods.

@TomKealy
Copy link
Author

TomKealy commented Nov 3, 2016

I've sorted the invalid registration issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants