<s> from __future__ import absolute_import , unicode_literals <EOL> import warnings <EOL> from django . template import loader <EOL> from wagtail . utils . deprecation import RemovedInWagtail16Warning <EOL> def get_related_model ( rel ) : <EOL> warnings . warn ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> RemovedInWagtail16Warning , stacklevel = <NUM_LIT:2> <EOL> ) <EOL> return rel . related_model <EOL> def get_related_parent_model ( rel ) : <EOL> warnings . warn ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> RemovedInWagtail16Warning , stacklevel = <NUM_LIT:2> <EOL> ) <EOL> return rel . model <EOL> def render_to_string ( template_name , context = None , request = None , ** kwargs ) : <EOL> warnings . warn ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> RemovedInWagtail16Warning , stacklevel = <NUM_LIT:2> <EOL> ) <EOL> return loader . render_to_string ( <EOL> template_name , <EOL> context = context , <EOL> request = request , <EOL> ** kwargs <EOL> ) </s>
