from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ValidationError
raise ValidationError(_('Slug of an open poll needs to be unique'))
return super(Poll, self).clean()
raise ValidationError(_('Slug of an open poll needs to be unique'))
return super(Poll, self).clean()