1st trial with generic views:
url.py:
url(r'^account/(?P<pk>\d+)/$', AccountDetailView.as_view(),
name='account-detail'),
views.py:
class AccountDetailView(DetailView):
model = Account
In the template, I get the data so:
object.field
But how do I get the field name (model.field.verbose_name)?
Axel
---
PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius
--
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.