from django.core.mail import send_mail, mail_managers
from django.core.urlresolvers import reverse
from django.core.validators import email_re
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext
from django.core.mail import send_mail, mail_managers
from django.core.urlresolvers import reverse
from django.core.validators import email_re
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext
Thank you for your comment on WolneLektury.pl.
The suggestion has been referred to the project coordinator.""") +
u"""
--
Thank you for your comment on WolneLektury.pl.
The suggestion has been referred to the project coordinator.""") +
u"""
--
def clean(self, *args, **kwargs):
if not self.cleaned_data['books'] and not self.cleaned_data['audiobooks']:
def clean(self, *args, **kwargs):
if not self.cleaned_data['books'] and not self.cleaned_data['audiobooks']:
self._errors["books"] = self.error_class([msg])
self._errors["audiobooks"] = self.error_class([msg])
return super(PublishingSuggestForm, self).clean(*args, **kwargs)
self._errors["books"] = self.error_class([msg])
self._errors["audiobooks"] = self.error_class([msg])
return super(PublishingSuggestForm, self).clean(*args, **kwargs)