Did either of you read the OPs email? He is not looking for forms...
OP:
There is nothing built in, but you can easily iterate through a
model's fields, they are all available in the _meta attribute on a
model instance:
>>> u = User.objects.get(id=1)
>>> for field in u._meta.fields:
... print
Even better, use django-form-utils!
https://bitbucket.org/carljm/django-form-utils/overview
Cheers,
AT
On Sun, Oct 16, 2011 at 7:57 PM, Mario Gudelj wrote:
> I think you need this
> https://docs.djangoproject.com/en/dev/topics/forms/modelforms/
>
>
> On 16 October 2011
I think you need this
https://docs.djangoproject.com/en/dev/topics/forms/modelforms/
On 16 October 2011 18:24, bovender wrote:
> Hi all,
>
> new to Django and loving it.
>
> Is there a way to automatically generate HTML output for the fields of a
> model
Hi all,
new to Django and loving it.
Is there a way to automatically generate HTML output for the fields of a
model instance?
I'm looking for something similar to form.as_table, just without the form
widgets.
Currently I find myself manually repeating all the typing work for the
detail view
4 matches
Mail list logo