1111class PolymorphicFormSetChild (object ):
1212 """
1313 Metadata to define the inline of a polymorphic child.
14- Provide this information in the :func:` polymorphic_inlineformset_factory` construction.
14+ Provide this information in the :func:' polymorphic_inlineformset_factory' construction.
1515 """
1616
1717 def __init__ (self , model , form = ModelForm , fields = None , exclude = None ,
@@ -37,7 +37,7 @@ def __init__(self, model, form=ModelForm, fields=None, exclude=None,
3737 def content_type (self ):
3838 """
3939 Expose the ContentType that the child relates to.
40- This can be used for the `` polymorphic_ctype`` field.
40+ This can be used for the '' polymorphic_ctype'' field.
4141 """
4242 return ContentType .objects .get_for_model (self .model )
4343
@@ -48,8 +48,8 @@ def get_form(self, **kwargs):
4848 # Do what modelformset_factory() / inlineformset_factory() does to the 'form' argument;
4949 # Construct the form with the given ModelFormOptions values
5050
51- # Fields can be overwritten. To support the global ` polymorphic_child_forms_factory` kwargs,
52- # that doesn't completely replace all ` exclude` settings defined per child type,
51+ # Fields can be overwritten. To support the global ' polymorphic_child_forms_factory' kwargs,
52+ # that doesn't completely replace all ' exclude' settings defined per child type,
5353 # we allow to define things like 'extra_...' fields that are amended to the current child settings.
5454
5555 exclude = list (self .exclude )
@@ -78,7 +78,7 @@ def polymorphic_child_forms_factory(formset_children, **kwargs):
7878 """
7979 Construct the forms for the formset children.
8080 This is mostly used internally, and rarely needs to be used by external projects.
81- When using the factory methods (:func:` polymorphic_inlineformset_factory` ),
81+ When using the factory methods (:func:' polymorphic_inlineformset_factory' ),
8282 this feature is called already for you.
8383 """
8484 child_forms = OrderedDict ()
@@ -97,8 +97,8 @@ class BasePolymorphicModelFormSet(BaseModelFormSet):
9797 as all variations need ot be exposed somewhere.
9898
9999 When switching existing formsets to the polymorphic formset,
100- note that the ID field will no longer be named `` model_ptr`` ,
101- but just appear as ``id`` .
100+ note that the ID field will no longer be named '' model_ptr'' ,
101+ but just appear as ''id'' .
102102 """
103103
104104 # Assigned by the factory
@@ -257,10 +257,10 @@ def polymorphic_modelformset_factory(model, formset_children,
257257 """
258258 Construct the class for an polymorphic model formset.
259259
260- All arguments are identical to :func:` ~django.forms.models.modelformset_factory` ,
261- with the exception of the `` formset_children`` argument.
260+ All arguments are identical to :func:' ~django.forms.models.modelformset_factory' ,
261+ with the exception of the '' formset_children'' argument.
262262
263- :param formset_children: A list of all child :class:` PolymorphicFormSetChild` objects
263+ :param formset_children: A list of all child :class:' PolymorphicFormSetChild' objects
264264 that tell the inline how to render the child model types.
265265 :type formset_children: Iterable[PolymorphicFormSetChild]
266266 :rtype: type
@@ -321,10 +321,10 @@ def polymorphic_inlineformset_factory(parent_model, model, formset_children,
321321 """
322322 Construct the class for an inline polymorphic formset.
323323
324- All arguments are identical to :func:` ~django.forms.models.inlineformset_factory` ,
325- with the exception of the `` formset_children`` argument.
324+ All arguments are identical to :func:' ~django.forms.models.inlineformset_factory' ,
325+ with the exception of the '' formset_children'' argument.
326326
327- :param formset_children: A list of all child :class:` PolymorphicFormSetChild` objects
327+ :param formset_children: A list of all child :class:' PolymorphicFormSetChild' objects
328328 that tell the inline how to render the child model types.
329329 :type formset_children: Iterable[PolymorphicFormSetChild]
330330 :rtype: type
0 commit comments