Re: how practically to extend your models?

2007-10-11 Thread Ilya Semenov
I'm one of those who participated in ticket #2145 discussion. I must admit you have the most sane and comprehensive opinion I ever heard on the 1-to-1 problem. Completely agreed on the every point.. And no, I don't see any other way on practically extending the models for natural and DRYish reusin

accessing db api from models.py breaks apps/models loading

2007-09-05 Thread Ilya Semenov
I've run into this problem when using dbsettings / django-values in my project, but the source of the problem actually lies deeper. There's a core class django.db.models.loading.AppCache which populates the list of project apps and models. It works pretty well unless a specific set of conditions

Re: Should regroup return a QuerySet?

2007-06-07 Thread Ilya Semenov
> It also occurs to me that if regroup handled QuerySets as a special case, > large-ish datasets could be regrouped in a much more efficient manner, since > the > filter method could be used instead of iterating and testing for equality. First, there will be no perfomance gain at all. Consider

Re: Allowing multiple {% block %}s in one template

2007-06-07 Thread Ilya Semenov
+1 on that. Have been in the same situtation and came up with the exactly same approach on my mind. Perhaps http://code.djangoproject.com/ticket/1513 should be reopened? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: dbsettings

2007-06-05 Thread Ilya Semenov
Marty, Thanks for your work! I run into the problem that the module doesn't seem to work well with Apache+mod_python. The new values are actually saved to the db, but not used until I restart Apache (neither as class members nor in the admin settings panel). I think that's because of the per-pro

Re: Model Equality Checking -- Does it need more power?

2007-04-26 Thread Ilya Semenov
I've been thinking on the equality issues a couple of days before. What I was trying to achieve was to construct a set() of (presumably, different) model objects. The intuitive approach: >>> a = User.objects.get(id=1) >>> b = User.objects.get(id=1) >>> set([a,b]) set([, ]) ...didn't work (the s

why manage.py sets sys.path to both . and ..

2007-03-13 Thread Ilya Semenov
ject.com", but I don't like the package to be named "project.com" (I'm not even sure that it's possible to have dots in the package name). I've found several threads in this group regarding this issue, but no decent solution or even comments. How do most of people