-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Compatibility with Django 3 #80
Conversation
Thanks! I checked the history of this problem to validate the fix. At the same time, the Thanks for the nice fix! |
django_redshift_backend/base.py
Outdated
@@ -87,7 +87,8 @@ def get_db_converters(self, expression): | |||
converters.append(self.convert_uuidfield_value) | |||
return converters | |||
|
|||
def convert_uuidfield_value(self, value, expression, connection, context): | |||
def convert_uuidfield_value(self, value, expression, connection, | |||
context=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.
Please remove context
argument completely because context
has been removed since django 2.0 and django-redshift-backend already drop support django 1.x.
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.
context removed !
Fix issue for anyone using uuid tpye after Django 2.0
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.
LGTM!
Codecov Report
@@ Coverage Diff @@
## master #80 +/- ##
=======================================
Coverage 47.01% 47.01%
=======================================
Files 3 3
Lines 251 251
Branches 62 62
=======================================
Hits 118 118
Misses 123 123
Partials 10 10
Continue to review full report at Codecov.
|
I'm going to release 2.1.0 in this week. |
Context removed since Django 3
Subject: Avoid errors of missing argument 'context'
Feature or Bugfix
Purpose
convert_uuidfield_value() missing 1 required positional argument: 'context'
Detail
Relates