Re: Class based generic views in 1.3?

2010-05-12 Thread fitzgen
I have been using class views at work that are based off of Jacob's base GenericView class since last summer. http://github.com/fitzgen/class_views/blob/master/views.py Things that people haven't really mentioned, but need addressing, that we had to find solutions for: * How to do redirects in c

Re: Class based generic views in 1.3?

2010-05-12 Thread Ben Firshman
On 11 May 2010, at 01:37, Russell Keith-Magee wrote: > > > Are class-based views planned for 1.3? Well, we haven't done any > formal planning for 1.3 yet, but I'm going to guess that the 1.3 high > priority feature list will essentially be "the features that got > dropped from 1.2", so in all li

Re: Template Tag Not Reinitialized in Loop

2010-05-12 Thread Benjamin Wohlwend
Hi, On Wed, May 12, 2010 at 5:28 PM, subs...@gmail.com wrote: > What is the simple workaround that I'm missing? > > -Steve > in a nutshell, you save the name of the variable on initialization of the node and resolve it while rendering. See all the examples in django/template/defaulttags.py, e.h.

Re: django.db.models.Options contribute_to_class uses default connection instead of using DATABASE_ROUTERS

2010-05-12 Thread Anssi Kaariainen
As a related problem the manage.py validate seems to do the same thing -- that is import the default connection and do any validation using it. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-deve

Re: django.db.models.Options contribute_to_class uses default connection instead of using DATABASE_ROUTERS

2010-05-12 Thread Peter Long
On May 12, 8:54 am, Russell Keith-Magee wrote: > > FYI - I got itchy fingers, so I opened a bug report: > > http://code.djangoproject.com/ticket/13528 > > Yours > Russ Magee %-) No problem. Thanks Peter Long -- You received this message because you are subscribed to the Google Groups "Djang

Re: Template Tag Not Reinitialized in Loop

2010-05-12 Thread subs...@gmail.com
I recently ran into this problem too for the first time. Essentially this boils down to my not being able to use a templatetag in a loop in some cases. What is the simple workaround that I'm missing? -Steve On May 5, 2:12 pm, Apreche wrote: > I had a really strange bug in one of my custom templa

Re: Plug-ins for Django

2010-05-12 Thread Russell Keith-Magee
On Wed, May 12, 2010 at 2:01 PM, Siebert, Maria wrote: > Hi, > > for our Django project, we developed an application which enables the usage > of plug-ins for enhancement of the application. I know plug-ins for years > using them a lot in "classical" application development, so when starting >

Re: django.db.models.Options contribute_to_class uses default connection instead of using DATABASE_ROUTERS

2010-05-12 Thread Russell Keith-Magee
On Wed, May 12, 2010 at 1:14 AM, Peter Long wrote: >> Sounds like a bug in the patch to me. As I said earlier, the options >> class doesn't have any knowledge about the database that is being used >> for a specific operation, so it can't enforce per-database >> restrictions. In the case of db_tabl

Plug-ins for Django

2010-05-12 Thread Siebert, Maria
Hi, for our Django project, we developed an application which enables the usage of plug-ins for enhancement of the application. I know plug-ins for years using them a lot in "classical" application development, so when starting deveolping with Django, I really missed them and put a big effort i