Skip to content
This repository was archived by the owner on Jul 17, 2018. It is now read-only.

FIXES DeprecationWarnings for django-1.3. #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions djangoratings/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,12 @@ def contribute_to_class(self, cls, name):

setattr(cls, name, field)

def get_db_prep_save(self, value):
def get_db_prep_save(self, value, connection=None):
# XXX: what happens here?
pass

def get_db_prep_lookup(self, lookup_type, value):
def get_db_prep_lookup(self, lookup_type, value, connection=None,
prepared=None):
# TODO: hack in support for __score and __votes
# TODO: order_by on this field should use the weighted algorithm
raise NotImplementedError(self.get_db_prep_lookup)
Expand Down