Re: Dynamic Filters for Generic Views

2005-08-25 Thread Aaron
missed that, sorry, I have not gotten to generic views yet...

Re: Dynamic Filters for Generic Views

2005-08-25 Thread [EMAIL PROTECTED]
I'm not sure if that's quite what I'm looking for. I think I would need to do a redirect to the generic views page from the def test, right? I'm specifically looking to be able to do this with generic views. Thanks, Tom

Re: Dynamic Filters for Generic Views

2005-08-25 Thread Aaron
How about this: (r'test/(?P[E])?/?$', 'missing.apps.persons.views.persons.test'), it will match either /test/E or /test in the url This one: (r'test/(?P[\w])/+$', 'missing.apps.persons.views.persons.test'), will match any letter character. /test/i test/e test/x etc. Then get the status

Re: Dynamic Filters for Generic Views

2005-08-23 Thread [EMAIL PROTECTED]
Okay, so I'm making some progress here. This line in my URLCONF will pass the status__exact = E. Problem is, it's hard coded. How do I set it up so that I can pass an arbitrary value as the desired 'status__exact'? (r'^(?P\d{4})/(?P[a-z]{3})/(?P\w{1,2})/E/$', 'django.views.generic.date_based.arc

Dynamic Filters for Generic Views

2005-08-23 Thread [EMAIL PROTECTED]
Hi Folks, I have the date_based Generic Views working nicely, but I'm trying to add on the capability to filter the items in the view based on one of the fields (status) - this has to be chosen by the user - currently I was trying this through passing a value in the URL, but I'm not sure if it's