Ejemplo n.º 1
0
    def __init__(self, *args, **kwargs):
        extra_class = kwargs.pop('extra_class', False)
        placeholders = kwargs.pop('placeholders', False)

        super(UserCreationForm, self).__init__(*args, **kwargs)

        self._set_extra_class(extra_class)

        if placeholders:
            self._set_placeholders()
        else:
            self.fields['username'].help_text = icon_help_text(
                u'Molimo koristite oblik iprezime ili imeprezime.')
Ejemplo n.º 2
0
 def __init__(self, verbose_name=_("Tags"),
         help_text=icon_help_text(
             "Popis oznaka, odvojene zarezom. Npr. IMO, komb, igra"),
         through=None, blank=False):
     through = through or TaggedItem
     super(TaggableManager, self).__init__(verbose_name, help_text, through, blank)