Skip to content

enhancement: add config (settings.py) option to support user_pk with UUID #284

@mw66

Description

@mw66

Currently user_pk can only be int.

in Django-AllAuth, the User id is UUID, so got this error:

django.urls.exceptions.NoReverseMatch: Reverse for 'organization_user_detail' with keyword arguments '{'organization_pk': 1, 'user_pk': UUID('097bc703-ba00-4215-95ee-9dc1a397a52b
')}' not found. 1 pattern(s) tried: ['organizations/(?P<organization_pk>[0-9]+)/people/(?P<user_pk>[0-9]+)/\\Z']         

As an enhancement, can we add config (settings.py) option to support user_pk with UUID?

Thank.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions