-
Notifications
You must be signed in to change notification settings - Fork 57
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
Created the license v exception #496
Conversation
@rtgdk have made all the changes and fixed the conflicts, ;let me know if anything else needs to be done in this |
@BassCoder2808 Can you please close #492, let's not keep duplicates open if conflicts are resolved in new one ?? |
request.POST["xmlText"], | ||
license_obj.text, | ||
license_obj.isException, | ||
is_ns, |
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.
Let's continue to pass arguments by name so that order doesn't get messed up when adding more args. It's always better and clearer to pass args by name.
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.
Let's pick all these nits later. @BassCoder2808 , merging it
@@ -108,6 +109,11 @@ def submitNewLicense(request): | |||
licenseName = form.cleaned_data['fullname'] | |||
licenseIdentifier = form.cleaned_data['shortIdentifier'] | |||
licenseOsi = form.cleaned_data['osiApproved'] | |||
isException = form.cleaned_data['isException'] | |||
if isException == "False": |
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.
What if the value given is false
? Use it like
isException.lower() == "true" then true else false
instead
@BassCoder2808 Please resolve the conflict |
Resolved |
models.py
formatXML.py
to solve the issueform.py
to accommodate theisException
field