Skip to content
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'reference/master' into bug/3354
Conflicts:
	rest_framework/compat.py
  • Loading branch information
xordoquy committed Oct 20, 2015
commit 026e114665b85ce87f318eb3f8f29428e599e548
8 changes: 0 additions & 8 deletions rest_framework/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,6 @@ def distinct(queryset, base):
pass


def get_model_name(model_cls):
try:
return model_cls._meta.model_name
except AttributeError:
# < 1.6 used module_name instead of model_name
return model_cls._meta.module_name


class CustomValidatorMessage(object):
def __init__(self, *args, **kwargs):
self.message = kwargs.pop('message', self.message)
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.