Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » not able to see models.DecimalField in template [RSS Feed]

#1 Dec. 4, 2010 19:21:42

P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

not able to see models.DecimalField in template


I have 2 fields in my model:
listing.name and listing.amount

listing.name shows up in the template but listing.amount does not. Do
I have to convert it to unicode first?

Thanks,
Patrick

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 4, 2010 19:26:42

Wayne S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

not able to see models.DecimalField in template


You shouldn't need to. How are you rendering your fields in your template?

On Dec 4, 2010 1:21 PM, "Patrick" <whya...@gmail.com> wrote:
> I have 2 fields in my model:
> listing.name and listing.amount
>
> listing.name shows up in the template but listing.amount does not. Do
> I have to convert it to unicode first?
>
> Thanks,
> Patrick
>
> --
> You received this message because you are subscribed to the Google Groups
"Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
.
> For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.
>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Dec. 4, 2010 19:27:30

d.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

not able to see models.DecimalField in template


I really don't have an answer to the question.

Instead of asking whether or not you should convert to unicode, I think you
should have converted first to unicode and see what happens. If that doesn't
work, then you ask for help.

It is just normal that you've used up all options you can think of before
asking for help. That option you least think of in most cases works the magic.

Regards.
Sent from my BlackBerry wireless device from MTN

-----Original Message-----
From: Patrick <whya...@gmail.com>
Sender: django-users@googlegroups.com
Date: Sat, 4 Dec 2010 11:21:35
To: Django users<django-users@googlegroups.com>
Reply-To: django-users@googlegroups.com
Subject: not able to see models.DecimalField in template

I have 2 fields in my model:
listing.name and listing.amount

listing.name shows up in the template but listing.amount does not. Do
I have to convert it to unicode first?

Thanks,
Patrick

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » not able to see models.DecimalField in template [RSS Feed]

Board footer

Moderator control

Enjoy the 20th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support