ASRG / asrg.io

asrg.io - website and docs
MIT License
7 stars 4 forks source link

User Login Portal: Modify fields to include tagging of roles as defined in User Management. #61

Closed brandonbarry123 closed 4 years ago

brandonbarry123 commented 4 years ago

Add a simple drop down to allow the user to select a chapter (role) to attach to their account.

Appears roles are attached properly in /admin, but not in /register. Melvin to look at /register to understand "many-to-many" bug.

brandonbarry123 commented 4 years ago

Melvin states that there's still an issue with "many-to-many" mapping when trying to attach a "chapter" role to user.

No error shows, but the chapter just doesn't get attached.

Problem line of code:

asrg.io/member-portal/django-dashboard-coreui/authentication/views.py, in "register_user":

        chapter = form.cleaned_data.get("chapter")
        request.user.chapter = chapter
        form.save()
brandonbarry123 commented 4 years ago

Brandon to give a shot at debugging.