On Wed, 2008-02-13 at 10:35 -0800, [EMAIL PROTECTED] wrote:
> Is there a way to set the "size" attribute of FloatFields in Generic
> Views? Currently they're pretty big, and it seems like max_digits was
> deprecated in FloatFields with the arrival of DecimalFields.

You're confusing two concepts here. There's the size of a field with
respect to the data size -- how large a value is stored in the database
-- and there's the size of the form field when displayed in a form.

Attributes like max_digits (in fact, almost all attributes on model
fields) deal with how the data is represented at the database level.
They carry no presentation information since there are many different
ways to present the same data.

So you're wanting to change the size of the HTML form field. CSS is the
usual answer here. Short- to medium-term, we'll port the generic views
over to newforms, which might make things a little easier, but that
hasn't been done yet (there are a couple of patches around, but they
need a little reviewing and tweaking, so it'll be done at some point).

Regards,
Malcolm

-- 
On the other hand, you have different fingers. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
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