How validate date in inlines in django admin?

How validate and work with cleaned data in inlines?
my models:

class ModelA(model.Model):
    name = models.CharField(max_length=20)

class ModelB(model.Model):
    name = models.CharField(max_length=20)
    model_a = models.ForeignKey(ModelA, on_delete=models.CASCADE)

my admin:

@admin.register(ModelA)
class ModelAAdmin(admin.ModelAdmin):
    inlines = [ModelBInLine,]

class ModelBInLine(StackedInline):
    model = ModelB
    formset = ModelBForm
    can_delete = True

class ModelBForm(BaseInlineFormSet):

    def __init__(self, *args, **kwargs):
        super(ModelBForm, self).__init__(*args, **kwargs)

    def clean(self):
        cleaned_data = super(ModelBForm, self).clean()    #there cleaned_data is None
        for form in self.forms:
            form.instance.name = new_name                #it's doesn't work                 
        return self.cleaned_data

I need rewrite any fields in inlines model and make some validation logic. But, if I rewrite field, it's doesn't work.

Back to Top