Re: Accessing a ManyRelatedManager by introspection for JSON/AJAX ?

2008-06-26 Thread Tim Adler
This is a sad self-reply. I got around this problem by using eval() and accessing the collection that way. Be careful with security though! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Accessing a ManyRelatedManager by introspection for JSON/AJAX ?

2008-06-20 Thread Tim Adler
Hey everybody, I'm currently trying to build an AJAX-JSON-processor with Django, which receives a JSON-encoded request and then writes those values to the database. Here is what I basically looks like: {"class":"pages.page", "id":"1", "show_more_on_topic":"0", "show_arch

Problems using mptt

2008-03-09 Thread Tim Adler
Hey everybody, I'm trying to added mptt to my django project for managing a simple page-tree. It doesn't seem to work, as it is supposed too. My model looks like this: from django.db import models import mptt class Page(models.Model): title = models.CharField(maxlength=200) bod

Managing hierarchial data, with Django

2008-03-09 Thread Tim Adler
Hey everybody, Django is a wonderful tool. It gives you so much freedom of thought. Still I got a problem that I can't figure out up to now. What is the best way for Django to manage hierarchial data? It is totally possible to add a self-referential foreign-key to every model. I also was pointed

Overwriting the save-function in automatic admin?

2006-12-02 Thread Tim Adler
Hey guys, I've written my blog in Django and am quite happy with it. Yesterday I implement trackbacks, so that Django kann accept them for posts. Next goal is to be able to send trackbacks. Since I put all my stuff into my blog through the automatic admin, my question is: Is there a way to overwr