On 09/05/11 16:22, fission6 wrote:
> Is there a way to re-factor the CBV approach so that templates simply
> get an instance of the CBV rather than trying to tweak context as well
> as having template context loaders like user and what not?
>
> it seems there'd be a way in CBV to simple push the caller instance to
> the template where you'd have access to everything contained in the
> CBV instance (context, request, request->user, etc...)?
>
I'm not convinced it's a great idea, but simply but 'self' in the
context dictionary.
This is django-users territory BTW.
Luke
--
OSBORN'S LAW
Variables won't, constants aren't.
Luke Plant || http://lukeplant.me.uk/
--
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers?hl=en.