Project

Profile

Help

Issue #4077

pulpcore can't be installed in a Django site that also ships a a custom User object

Added by bmbouter over 2 years ago. Updated about 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Problem

The pulpcore app isn't "reusable" because of this. See https://docs.djangoproject.com/en/2.1/topics/auth/customizing/#reusable-apps-and-auth-user-model

Solution

I'm not sure of all the implications but we could:

(a) stop shipping a custom user model entirely.
(b) move the user bits to their own python package
(c) find an existing Django app that users can install/configure that is effectively solution (b)

Associated revisions

Revision b2471634 View on GitHub
Added by Alexander Saprykin about 2 years ago

Fix user serializer for custom user model

In case of custom user model used, PasswordSerializer fails because it relies on builtin into Django user model. This patch add dynamic user model resolving.

closes #4077

Revision b2471634 View on GitHub
Added by Alexander Saprykin about 2 years ago

Fix user serializer for custom user model

In case of custom user model used, PasswordSerializer fails because it relies on builtin into Django user model. This patch add dynamic user model resolving.

closes #4077

History

#1 Updated by bmbouter over 2 years ago

This is blocking the integration with galaxy.ansible.com

#2 Updated by bmbouter over 2 years ago

I posted a possible fix in this PR here: https://github.com/pulp/pulp/pull/3711/files

#3 Updated by bmbouter over 2 years ago

  • Status changed from NEW to POST

#4 Updated by bmbouter over 2 years ago

  • Status changed from POST to MODIFIED

#5 Updated by bmbouter over 2 years ago

  • Status changed from MODIFIED to POST

Moving to post to attach another issue

#6 Updated by CodeHeeler over 2 years ago

  • Triaged changed from No to Yes

#7 Updated by Anonymous about 2 years ago

  • Status changed from POST to MODIFIED

#8 Updated by daviddavis almost 2 years ago

  • Sprint/Milestone set to 3.0.0

#9 Updated by bmbouter over 1 year ago

  • Tags deleted (Pulp 3)

#10 Updated by bmbouter about 1 year ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF