On 7 Sie, 17:40, Doug B <[EMAIL PROTECTED]> wrote:
> form = NewsForm(request.POST, somegroup=somegroup)
>
> given your form __init__ definition, you are passing POST into the
> spot for somegroup.
>
> What I did to get around this was something like this:
>
> class NewsBaseForm(BaseForm):
>
form = NewsForm(request.POST, somegroup=somegroup)
given your form __init__ definition, you are passing POST into the
spot for somegroup.
What I did to get around this was something like this:
class NewsBaseForm(BaseForm):
def __init__(self, *args, **kwargs):
nkwargs =
Hi,
I'm using form_for_model & form_for_instance with my specific
BaseForm.
The problem is that depending on some value, I need to display form
with
values limited.
There's a model:
class SomeGroup(models.Model):
name = models.CharField(primary_key=True)
class Place(models.Model):
3 matches
Mail list logo