from django import forms
from testApp.models import employee


class EmployeeForm(forms.ModelForm):

    def clean_esal(self):
        input_sal = self.cleaned_data['esal']
        if input_sal < 5000:
            raise forms.ValidationError('The Minimum salary should be 5000.')
        return input_sal


    class Meta:
        model = employee
        fields = '__all__'

ec52b443302a3cb359409629b361d8a71bf47a82
<mask token>

<mask token>


class EmployeeForm(forms.ModelForm):
    <mask token>


    class Meta:
        model = employee
        fields = '__all__'

<mask token>


class EmployeeForm(forms.ModelForm):

    def clean_esal(self):
        input_sal = self.cleaned_data['esal']
        if input_sal < 5000:
            raise forms.ValidationError('The Minimum salary should be 5000.')
        return input_sal


    class Meta:
        model = employee
        fields = '__all__'

from django import forms
from testApp.models import employee


class EmployeeForm(forms.ModelForm):

    def clean_esal(self):
        input_sal = self.cleaned_data['esal']
        if input_sal < 5000:
            raise forms.ValidationError('The Minimum salary should be 5000.')
        return input_sal


    class Meta:
        model = employee
        fields = '__all__'
