drop down box in django-admin interface UI?

2008-05-22 Thread ravindra goyal
hi i want to make one of my field taking value as drop down box on django-admin UI. how can i define a field in model such that it takes value from a specific set of values in django-admin interface. i am using django-admin interface for one of my database. in a certain table in a particular field

Re: drop down box in django-admin interface UI?

2008-05-22 Thread Thejaswi Puthraya
On May 22, 4:02 pm, "ravindra goyal" <[EMAIL PROTECTED]> wrote: > hi > i want to make one of my field taking value as drop down box on django-admin > UI. > how can i define a field in model such that it takes value from a specific > set of values in django-admin interface. > i am using django-admi

{GSoC 2008}Django-Newcomments : A preview

2008-05-22 Thread Thejaswi Puthraya
Hello folks, My exams got done in the first week of May. I was feeling quite bored and so started working on the project. I completed a few items from the Todo list but need to complete the documentation and write more tests. The code for my project is at http://code.google.com/p/django-newcomme

Re: Multiple database support

2008-05-22 Thread Simon Willison
I have to admit I'm slightly worried about the multi-database proposal, because at the moment it doesn't seem to solve either of the multi-db problems I'm concerned about. The proposal at the moment deals with having different models live in different databases - for example, the Forum applicatio

Re: {GSoC 2008}Django-Newcomments : A preview

2008-05-22 Thread Nicolas Lara
Hello, I was checking out the project.. So far it looks very good =) A question though: I noticed the comments retreived by {% get_comment_list ... %} are ordered by pk. Is there any plan to include custom ordering? I believe the default ordering should include replies to old comments after the o

Re: Multiple database support

2008-05-22 Thread Ben Ford
Hi all, I've now re-applied Daryls patch (which was against qsrf) to a clone of django trunk in a mercurial repo. It's available at http://hg.woe-beti.deand there's a trac set up for it at http://trac.woe-beti.de. Feel free to make use of both of these. Although I've disabled to ability to create

Re: Multiple database support

2008-05-22 Thread Ivan Sagalaev
Simon Willison wrote: > Thankfully Ivan Sagalaev's confusingly named mysql_cluster BTW does anyone have a suggestion how to rename it? I've picked mysql_cluster simply because I didn't know that there exists the thing named "MySQL Cluster" (no kidding :-) ). --~--~-~--~~---

Re: Manager-model reassignment on abstract subclassing

2008-05-22 Thread Sebastian Noack
> > > There's a similar ticket to this at 7154  (http:// > > > code.djangoproject.com/ticket/7154). It has a patch that works > > > but I am not sure if it is the most elegant method. I am the author of #7154 and its patch. I thought first that it is possible to fix this problem with less code if

Re: HTML in Admin.fields 'description'

2008-05-22 Thread Ramiro Morales
Hi Luke, On Mon, May 19, 2008 at 2:38 PM, Luke Plant <[EMAIL PROTECTED]> wrote: > > The 'description' option in Admin.fields is currently broken with > respect to the documentation, due to autoescape. See: > > http://www.djangoproject.com/documentation/model-api/#description > > I propose fixing

Re: HTML in Admin.fields 'description'

2008-05-22 Thread Luke Plant
On Thursday 22 May 2008 19:46:34 Ramiro Morales wrote: > Hi Luke, > > When I saw changeset 7545 I tried searching Trac for some related > open ticket that could be closed. > > What I found instead was changeset [1]7078. > > Doesn't it make the part about using mark_safe() of your change to > model

Re: QuerySet.update improvement.

2008-05-22 Thread Sebastian Noack
On Wed, 21 May 2008 21:12:05 +0800 "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > What do I think? The code doesn't look fundamentally bad, but I'm not > going to take a serious look until there are some test cases. > > Consider this from my point of view. I need to validate that your code > w

Re: QuerySet.update improvement.

2008-05-22 Thread [EMAIL PROTECTED]
I just updated to your latest patch and there appears to be 2 test failures: http://dpaste.com/52137/ , the first one appears to be caused by the fact that different database engines do the rounding differently, my suggestion would be to change to something that divides evenly for the integer valu

Re: Multiple database support

2008-05-22 Thread Eratothene
I think there is a third issue. Usage of several RDBMS in one django application simulatneously For example we maintain two RDBMS: monetdb and postgresql. The latest and most accessed data is stored in monetdb for performance. After one month data is moved to posgresql which holds the full archi

Re: QuerySet.update improvement.

2008-05-22 Thread Sebastian Noack
On Thu, 22 May 2008 14:20:26 -0700 (PDT) "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I just updated to your latest patch and there appears to be 2 test > failures: http://dpaste.com/52137/ , the first one appears to be > caused by the fact that different database engines do the rounding > dif

Re: QuerySet.update improvement.

2008-05-22 Thread [EMAIL PROTECTED]
I'm testing on SQLite, and I don't get that failure when running on vanilla trunk. On May 22, 6:57 pm, Sebastian Noack <[EMAIL PROTECTED]> wrote: > On Thu, 22 May 2008 14:20:26 -0700 (PDT) > > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > I just updated to your latest patch and there appears

Re: {GSoC 2008}Django-Newcomments : A preview

2008-05-22 Thread arthur debert
Hi Thejaswi. A couple of suggestions: Any reasons for having CommentFlag.flag being a string, and not a foreign key to a FlagType model ? Having them as strings makes it easier to end up with bad data (misspelling and so forth). Of course there is always the performance penalty, but it seems wor

Re: {GSoC 2008}Django-Newcomments : A preview

2008-05-22 Thread Will Hardy
> Any reasons for having CommentFlag.flag being a string, and not a > foreign key to a FlagType model ? Having them as strings makes it > easier to end up with bad data (misspelling and so forth). Of course > there is always the performance penalty, but it seems worth it. You can do both :-) Hav