Skip to content
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

Edit post as anonymous user #282

Open
vincentporte opened this issue Oct 20, 2022 · 2 comments
Open

Edit post as anonymous user #282

vincentporte opened this issue Oct 20, 2022 · 2 comments

Comments

@vincentporte
Copy link

vincentporte commented Oct 20, 2022

Hi @ellmetha,
Using anonymous user capabilities, we found that editing a post a anonymous user made, by him.her.self fails.

Error Message : Cannot assign "<SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa3c8230f10>>": "Post.updated_by" must be a "User" instance.

We embeded fix in our app, but it may be useful for everyone.
Class PostForm, method update_post

@vincentporte
Copy link
Author

Fix and tests are ready in a local new branch of your repo. Let me know if you're interested in me creating a PR.

@vincentporte
Copy link
Author

Hi, I catched the same error when editing Topic as anonymous user. Let's keep in touch if I can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant