Hi, all
I defined a choice field in model like bellow: 
    sendchannel = models.CharField(max_length=1,choices=(('1','channel 
1'),('2','channel 2')))
so how to  show the choice title but not value on template?  I scanned admin 
templates . seems something like dict(choices).get(xxxx). just cannot figure it 
out.  Anyone can help me? Thanks  
/sky




      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to