-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make an HerokuConnect model the app's custom user model #93
Comments
Hi @Eliagandolfi thanks again for reaching out here on GitHub. |
Hi @codingjoe, really thank you so much for the quick reply.
I'll propose a change in the source code Still, I can't change the behaviour or my source model's field.
but getting this error
I've also tried to create a custom user model using |
@Eliagandolfi can you share the |
Hi @codingjoe
Here's how I'm trying to extend the
I need to tell Django to use Do you have any suggestion on how to solve the issue? |
@Eliagandolfi I have an Idea, can you please change the class vendoruser(Vendor, metaclass=models.ModelBase):
# .... I would also encourage you to look into pep8 naming conventions in Python. Make reading code for someone like me a lot simpler. |
I need to either extend/substitute my Django app's user model a HerokuConnect model
Specifically, vendors registered in Salesforce should be able to login with their vendor_code__c as username
I've tried to replicate the vendor model with multi-table inheritance (referred to this tutorial)
The idea is to extend the model from here. I do as in the example, but I get blocked right away with the following error
I've also tried to use hc_models.OneToOneField or hc_models.ForeignKey but it's not supported. Any suggestion on how to work around this?
@codingjoe
The text was updated successfully, but these errors were encountered: