Skip to content

Use of Django Internal Property #254

@kahnvex

Description

@kahnvex

Python Social Auth's Django App directly references a property that is marked for internal use only.

field = UserSocialAuth.user_model()._meta.get_field(username_field)

The use of _meta here is problematic for applications that are service oriented by nature. If your user store is a service consumed by a client that houses python social auth (like a legacy user store) you should not have to implement all the "internal" stuff (like _meta) that a Django model has. By adding a simple check this could probably be avoided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions