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
Upgrade Django Rest Framework #1703
Conversation
Incomplete list of things that have changed in `response.data`: * Returns a list (ReturnList) not a `dict('results', [results])` * Returns an iso-formatted string instead of a `datetime` for dates
This creates one test for each endpoint which is better than one assert for each endpoint.
No hardcoding plx
@@ -652,6 +653,26 @@ def get_times(request): | |||
return starttime, endtime | |||
|
|||
|
|||
|
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.
Nice, moving code to where it belongs
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.
Thumbs up! Great to have tests for it too.
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 looks fine to me except for:
- Minor nitpick about naming
NOTES.rst
needs a section about which dependencies a user needs to upgrade to which versions for this stuff to work.
from .models import LogEntry | ||
|
||
|
||
class LGFKRelatedField(serializers.RelatedField): |
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.
I know LegacyGenericForeignKeyRelatedField
is a long type, but I don't appreciate this type of mysterious abbreviations. Its only redeeming factor is that the scope is short: It's only used in the next class...
Upgrade Django Rest Framework to at least support Django 1.8
As tests are passing now I consider this complete. For the reviewers - verify model-changes and take a look at the tests to see if they are sane.