def get_prefix(self, form, name):
        """
        Return the prefix that is used for the formset.
        """
        return '{form_prefix}{prefix_name}-{field_name}'.format(
            form_prefix=form.prefix + '-' if form.prefix else '',
            prefix_name=self.prefix_name,
            field_name=name)
def get_prefix ( self , form , name ) : return '{form_prefix}{prefix_name}-{field_name}' . format ( form_prefix = form . prefix + '-' if form . prefix else '' , prefix_name = self . prefix_name , field_name = name )
Return the prefix that is used for the formset.