- if not 'q' in self.data:
- self.fields['q'].widget.attrs['placeholder'] = _('title, author, theme/topic, epoch, kind, genre, phrase')
+ if 'q' not in self.data:
+ self.fields['q'].widget.attrs['placeholder'] = _('title, author, epoch, kind, genre, phrase')