Usage of django-model-utils TimeFramedModel manager

2013-08-15 Thread Ogre
Hi all, I've a model defined as thus: from model_utils.models import TimeFramedModel class Event(TimeFramedModel): title=models.CharField(max_length=100) ... The docsare a bit slim on the ground for this

Re: Pass template tags through TextField?

2009-07-22 Thread Ogre
;    c = Context({'form': form, etc.. #any context to go into the > template}) > >   # now you can just return the rendered template as html >   return HttpResponse(t.render(c)) > > For more info refer > to:http://docs.djangoproject.com/en/dev/ref/request-response/ >

Pass template tags through TextField?

2009-07-22 Thread Ogre
I have a model where I need to be able to insert template tags into a TextField in the admin as part of the content and then have them rendered properly on the front-end. Can this be done? And if so, can someone recommend a method? I understand the security concerns of opening that field up to