Open
Conversation
and mysql related lib
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
| queryset = Person.objects.all().order_by('id') | ||
|
|
||
| if phoneNumberExists in ["true","t","yes","y"]: | ||
| queryset = queryset.filter(phone_no__isnull=False).exclude(phone_no__in=['']) |
Contributor
There was a problem hiding this comment.
logic incorrect as it would provide numbers like 9, 0, 1 etc. Add a more generalised logic for numbers.
sagardg
reviewed
Jun 10, 2020
sagardg
reviewed
Jun 10, 2020
Contributor
|
try to add try except blocks where ever you think your code could break and try adding testcases. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Steps to apply changes:
(mainly
djangorestframework==3.6.4djangorestframework-csv==2.1.0)python manage.py migratecommand to implementTokenAuthenticationpython manage.py runserverChanges summary:
--
activities--
videos--
geographies--
people--
programsF_counthas been added to people serializer to ease calculation in Redash for data visualizationcoco_apihas been created to keep utils, permissions and constants filescoco_api/log/logfile.logIsDGRestrictedhas been added to control access to views on the basis ofdjango.contrib.auth.models.Groupas mapped byPERMISSIONS_MAPinconstants.py