#NEWLINE# def get_model_compat( app_label , model_name ) : #NEWLINE# #INDENT# 'Get a model on multiple Django versions.' #NEWLINE# try : #NEWLINE# #INDENT# from django.apps import apps #NEWLINE# return apps . get_model ( app_label , model_name ) #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# from django.db.models import get_model #NEWLINE# return get_model ( model_name , model_name )