<s> from django import forms <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from robots . models import Rule <EOL> class RuleAdminForm ( forms . ModelForm ) : <EOL> class Meta : <EOL> model = Rule <EOL> fields = "<STR_LIT>" <EOL> def clean ( self ) : <EOL> if ( not self . cleaned_data . get ( "<STR_LIT>" , False ) and <EOL> not self . cleaned_data . get ( "<STR_LIT>" , False ) ) : <EOL> raise forms . ValidationError ( <EOL> _ ( '<STR_LIT>' ) ) <EOL> return self . cleaned_data </s>
