> 3. Meta attribute formfield_kwargs for model forms
It seems like the arguments to form fields can already be customized
fairly easily using formfield_callback? In your example, I think you
could accomplish the same thing using formfield_callback like this:
formfield_callback = lambda f: f
Some of these changes I think are very valuable, especially CSS
classes. The formfield_kwargs I don't think is the right approach, but
possibly a method which could be called, as a lot of times I'm
overriding __init__ and it's quite messy, just to change the queryset
for a form.
I would personall
On Sat, Oct 18, 2008 at 5:38 PM, Net_Boy <[EMAIL PROTECTED]> wrote:
>
> Hello
>
> am doing a new project and I want the user to register to the
> system, I use auth.user model
> when I call a form from it it only shows the Username and the password
> fields, I want to add the email field to it si
Hello
am doing a new project and I want the user to register to the
system, I use auth.user model
when I call a form from it it only shows the Username and the password
fields, I want to add the email field to it since am going to email
the users?
Does anyone knows how to do that ?
thanks.. :
Hi Nathaniel,
I just cleaned up my implementation and posted it (along with some
usage notes) at http://demo.apture.com/demo/ifactive.py .
I modified it from my original implementation, so now it doesn't
require patching Django. It does require adding a middleware class,
though. Although, if peo