Skip to content

bug and/or documentation issue on extending model - doesn't explain how to utilize extended model #208

@honestbleeps

Description

@honestbleeps

In your advanced topics, you explain how to extend the existing model, which is great! Docs here:

https://django-oauth-toolkit.readthedocs.org/en/latest/advanced_topics.html

However, doing this breaks the registration form because it's missing these two new fields, and the fields are hard-coded in the RegistrationForm class. Submitting the form therefore fails due to empty fields (since they're not even rendered)

It would be great if the documentation went a step further and explained how to ensure the new fields show up in the RegistrationForm.

Alternatively, it could potentially be a bug. Since we can set the application model as a setting, perhaps the RegistrationForm could/should derive the fields automatically from the class in that setting?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions