How in template.html change link <a> on <img>. 

<p><label for="id_avatar">Zdjecie:</label> Teraz: <a href=
"/media/avatar/n.jpg">avatar/n.jpg</a>

In forms.py like below I see that I can change label name, but how can I do 
this with <a> ???

class MysiteUserForm(forms.ModelForm):
    #age <https://www.facebook.com/hashtag/age?hc_location=ufi> = 
forms.IntegerField(min_value=1, max_value=99, 
widget=forms.NumberInput(attrs={}))
    #avatar <https://www.facebook.com/hashtag/avatar?hc_location=ufi> = 
forms.ImageField()
    class Meta:
        model = MysiteUser
        fields = ['sex','age','province','city','martial_status','religion',
'kids','education',
                  'are_smoke','are_drink','avatar']
        labels = {
            'avatar': _('Zdjecie'),
        }


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7674fe46-895a-4991-ac8e-47c0210220e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to