-
Notifications
You must be signed in to change notification settings - Fork 14
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
There is a bug still #42
base: master
Are you sure you want to change the base?
Conversation
Hello @ayush1999guptA! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-05-23 15:09:26 UTC |
Hehe @ayush1999guptA I had a problem with email validation too, and I understand. I really do suggest you use pycharm with pep8 installed, it really helps you write clean pep8 code fast. I'll review this soon. |
I fixed the pep8 issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- You'll have to pre-populate the edit form with old profile values so that we don't have to re-enter every field each time we want to edit it. To do this just pass profile instance while you instantiate the UserEditForm.
- Also you'll have to pass request.FILES to make sure the image can be uploaded
Eg: form = UserEditForm(request.POST, request.FILES, instance=request.user.profilemodel)
- Additionally, you may want to rename the form to
ProfileEditForm
just so that there are no confusions later. - PEP8 Fixes look great!
- refer https://www.youtube.com/watch?v=CQ90L5jfldw&list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p&index=9 if you get stuck
-[ ] Closes: #31
-[ ] Closes: #21
-[x] PEP8
Changes Summary: created a user profile render thingy, there is still a bug I can't sort is that it is not able to fetch media files. I removed email validation as it was very uncertain. I worked very hard on this ,I better get the t-shirt :)