Update Django to 1.8 and DRF to 3.3, add new Django migrations, update serializers/pagination/metadata, update browsable API styling.

This commit is contained in:
Chris Church
2016-02-02 14:50:42 -05:00
parent 6242df1a07
commit 60224cdbe4
140 changed files with 2694 additions and 1375 deletions

View File

@@ -354,8 +354,7 @@ def get_type_for_model(model):
'''
Return type name for a given model class.
'''
from rest_framework.compat import get_concrete_model
opts = get_concrete_model(model)._meta
opts = model._meta.concrete_model._meta
return camelcase_to_underscore(opts.object_name)