This sounds good.  Form Preview could be useful, but right now I just want 
to be able to use Generic Views (DetailView.as_view()) to render the default 
context object using "as_table()", but I'm failing to do that.

{{ object.as_table }} returns nothing, whereas, {{ object.name }} etc. works 
just fine.  I don't understand why object.as_table wouldn't work.  Below are 
some code fragments.

Cheers,

Ian

urls.py:
    (r'task/(?P<pk>\d+)/?$'      , DetailView.as_view(model=WSMRTask)),

to

templates/wsmr/wsmrtask_detail.html:
    <table>
        <tr>
            <td>{{ object.as_table }}</td>
        </tr>
    </table>

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