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

IMPORTANT: Django model syntax is changing

2005-08-25 Thread Adrian Holovaty
All, By popular demand, I'm about to change Django's model syntax to use "fieldname = FieldClass" instead of "FieldClass('fieldname')". This has been a longstanding ticket -- http://code.djangoproject.com/ticket/122. This change is BACKWARDS-INCOMPATIBLE, so don't "svn update" your code until yo

list_display = ForeignKey?

2005-08-25 Thread J. Davis
Hi there, I'm writing my first Django app and trying to get the Admin( list_display ) to display ForeignKey names. Here's how I'm trying to do it: class Thing(meta.Model): fields = ( meta.CharField('name' maxlength=60, primary_key=True), ) class Entry(meta.Model): def __rep

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

how to czeck a field

2005-08-25 Thread Krzysztof Drozd
i use meta.EmailField('email',null=True,blank=True). in my template (is use generic views) i will check ob email is Null or have a e-mail text. how to ??? kd.