Re: newforms-admin fieldsets classes question

2007-11-12 Thread Matthias Urlichs
The problem is that the intent is a test like "bar" in "foo bar baz" which is true; unfortunately, so is "bar" in "disbarment" which shouldn't be (in this context anyway). Thus you should test "bar" in ("foo","bar","baz") instead, which seems to be the intent behind this change

Re: newforms-admin fieldsets classes question

2007-11-11 Thread Matthias Urlichs
IMHo it makes sense to usee a tuple there. I'd go so far as to recommend *not* to concatenate that (three lines down...); the subsequent test in line 81 will cause false positives otherwise. --~--~-~--~~~---~--~~ You received this message because you are

Re: Using auth in model

2007-11-10 Thread Matthias Urlichs
Hi, On Nov 10, 3:18 am, Arnold Chen <[EMAIL PROTECTED]> wrote: > Sorry, there is a typo mistake, my question is "how to get logged-in" > user WITHOUT request parameter. > Because i want to use it in a function in models.py There is a clean separation of "what data do you have" and "what data

Re: Django-multilingual

2007-11-09 Thread Matthias Urlichs
I've been hacking on django-multilingual a bit in the last few days. Fixes, so far: * import it into git (OK, that's not a fix per se, but how would I work on it otherwise?) * language codes in the database instead of in settings.py. Yay! * allow "unique" constraints in translated fields (they