New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add new user after initial setup #642

halmechanic opened this Issue Nov 30, 2018 · 1 comment


None yet
2 participants

halmechanic commented Nov 30, 2018

Description of problem

Using a kiwitcms image built from latest source, when entering the add user page to add another user after initial configuration, I get an AttributeError at /admin/auth/user/add/ with value "'NoneType' object has no attribute 'pk'". Doesn't occur when pulling kiwitcms image from Docker Hub.

Version or commit hash (if applicable)

Latest Source from master (30/11)

Steps to Reproduce

  1. Build kiwitcms image from latest source (make docker-image)
  2. Initialize containers (db and first user - migrate and createsuperuser)
  3. Go to admin/auth/user/ to add a new user

Actual results

Internal Server Error (500)

Expected results

Display the add user page with empty fields for username, password etc.

Additional info (Python traceback, logs, etc.) (traceback)


This comment has been minimized.


atodorov commented Nov 30, 2018

Thanks for this report. That is a legitimate bug and I've opened a PR with a fix and couple of tests as well. I will merge it as soon as CI reports PASS.

We are going to build a new docker image pretty soon as well but it appears you are already building the image yourself.

@atodorov atodorov closed this in af92bb8 Nov 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment