Tuesday, April 9, 2013

Re: How to rename objects (Urgent)

On Tue, Apr 9, 2013 at 12:23 PM, Giorgos Kontogiorgakis
<shortgeorgeaek@yahoo.com> 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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate