def __init__(self, *args, **kwargs):
    super().__init__(*args, **kwargs)
    if (not self.instance.pk):
        self.fields['plaintext'].required = True
def __init__(self, *args, **kwargs):
    super().__init__(*args, **kwargs)
    if (not self.instance.pk):
        self.fields['plaintext'].required = True