Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Custom related_names

Compare
Choose a tag to compare
@jcdyer jcdyer released this 18 Mar 15:39
· 45 commits to edx since this release

This release contains a backward incompatible change:

  • Foreign key reverse names have been specified, so this library can be
    installed alongside django-oauth-toolkit. Code that traverses from
    the User model to django-oauth2-provider models will need to update the
    related name used.

    >>> user.access_token
    >>> user.grant
    >>> user.refresh_token
    

    becomes:

    >>> user.dop_access_token
    >>> user.dop_grant
    >>> user.dop_refresh_token