Re: The method all() in overrided models.Manager doesn't works as expected

2012-12-31 Thread akaariai
Interesting approach :) Some pointers: - The Page object has an automatic primary key. You should probably change the path to be the primary key. - .all() should not return a list of objects, instead it should return a QuerySet which returns a list of objects when iterated. You might be

The method all() in overrided models.Manager doesn't works as expected

2012-12-30 Thread Shuge Lee
I'm writing a simple CMS, it stores page file data on local file system instead of SQL server. I do overrides the model Page's Manager, but it not works as expected, problems - PageManager.all(it calls PageQuerySet?) doesn't works - I can create Page object in Admin, but can't view it