On Tue, Apr 9, 2013 at 12:23 PM, Giorgos Kontogiorgakis
<[email protected]> wrote:
> Hi there again Serdar!
>
> i think that you misunderstood me(or i metioned it wrong :( )
> I don't want to change the name of my
> fields(interfacein,interfaceout,capacity,delay) but i want to change the
> name of "Link objects" that i see on my webinterface.I have a list something
> like:
>
> Link object
> Link object
> Link object
> Link object
> Link object
>
> and i want to change them so i can recognise what object i have,because now
> i must click on it and check the fields to check on what object i am on!I
> want to be something like:
>
> Link Tcp
> Link Udp
> Link Ipv6
> Link Mpeg
> Link blablabla
>
> I hope that i was more spesific now!Cause i think that with unicode thing i
> can't do the thing i want or i am wrong cause i am not to familiar with this
> tool yet!Waiting your responce as soon as possible and thank you for your
> time and help my friend!
>

Hi Giorgos

Serdar's advice was correct, if you want to change how your Link
objects are represented, you need to define a __unicode__ method on
your Link class.

This concept is covered in step 1 of the Django tutorial. I really
really really recommend that you follow and complete the tutorial
before proceeding:

https://docs.djangoproject.com/en/1.5/intro/tutorial01/

Cheers

Tom

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to