mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 20:20:06 -03:30
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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user