def clean_name(self):
        name = self.cleaned_data.get('name', '')
        if not len(name):
            raise forms.ValidationError('Please fill the name')
        if name == 'chilling, working, eating ...':
            raise forms.ValidationError('Please fill in your own name, this is default name')
        q = Playlist.objects.filter(creation_user=self.user, name__iexact=name)
        if self.instance.pk:
            q = q.exclude(pk=self.instance.pk)
            
        if 0 > q.count():
            raise forms.ValidationError('You already have a playlist with title "%s". Please select another title for this playlist' % name)
        
        return name
dataset/ETHPy150Open jpic/playlistnow.fm/apps/playlist/forms.py/PlaylistAddForm.clean_name/swapped operands of `>`