-
Notifications
You must be signed in to change notification settings - Fork 167
Field class doesn't take connection and prepared arguments #12
Comments
This warning appears at least in early snapshots of Django 1.3, not sure about 1.2. |
Having same problem with SVN version of Django. |
I propose this : feth@3c73f2b But as I am fairly new to django, I'm not sure if it is sufficient (ie. does not cause another problem). |
Django 1.3 prints two warnings (and feth's patch seems to address both):
It would be nice to see this fixed now that Django 1.3 is out. |
Personally, I would like to have someone that knows the internals of django's database code reassure that this fix is appropriate before committing to it. I'm pretty sure that it will cause backward compatibility issues with older Django versions. |
I would assume running the regression tests Django comes with would give you your answer... |
How about using @feth's fix, but passing a default value for the
|
One method is a no-op, the second raises a https://bitbucket.org/piquadrat/django-annoying/changeset/05460f0008ea |
Kronuz's fork seems to have fixed this bug: |
Thanks andreaslucena - Yes, Kronuz's fork works. |
Has @dcramer addressed why this has not been pulled into master branch? Are there outstanding issues with this patch? |
Any chances on getting this into the master branch? Thanks |
The person who forked this project and fixed this didn't send a pull request to @dcramer. Thanks to whomever it was that found the fork implementing a solution. I've mentioned it to @dcramer, so we'll see if he wants to merge it or if I should get the attention of @Kronuz on sending over a pull request. |
Fields in new versions of django can receive a connection and prepared argument. I believe this is for multi-db. Until django-ratings accepts these variables, django will throw a DeprecationWarning using djangoratings.fields.RatingField:
The text was updated successfully, but these errors were encountered: