-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Code Changes views/clients/create.py #356
Conversation
|
backend/views/core/clients/create.py
Outdated
@@ -9,14 +9,14 @@ | |||
def create_client(request: HtmxHttpRequest): | |||
if request.method == "GET": | |||
return render(request, "pages/clients/create/create.html") | |||
|
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.
Could you run black ./
or py manage.py lint black
for me please. Thanks!
I suggest next time running tests locally, there's been quite a few issues with this PR. https://docs.strelix.org/MyFinances/contributing/setup/#test-and-lint |
ff0ac3a
to
8d23ed2
Compare
Apologies I force pushed some stuff the other day and it broke a few bits. I'll revert it now |
messages.error(request, "Failed to create client - an unknown error occurred") | ||
return redirect("clients dashboard") | ||
def create_client_instance(user, client_details): | ||
organization = user.logged_in_as_team if user.logged_in_as_team else None |
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.
This needs to support adding customers under an individual user aswell as organisation
Apologies for the really delayed response. If you could fix up the bug that I addressed above that would be much appreciated. |
Made code changes to views/clients/create.py