Re: Thank you to our security aware developers

2012-11-30 Thread Russell Keith-Magee
Hi Chris, Thanks for the kind words. It's always nice to know when your efforts are appreciated. As for the suggestion about the error message -- that's sounds like a reasonable idea to me; feel free to open a ticket. If you're looking to get involved in the development of Django itself, this sho

Thank you to our security aware developers

2012-11-30 Thread Chris Cogdon
I want to give a big "thumbs up" to the folk that worked on InlineForeignKeyField, inlineformset_factory, and their friends. I just used inlineformset_factory for my project, saw that it was writing the parent id out into hidden form variables and, thinking that this seemed "unnecessary" and a

testing tutorial feedback needed! (was: Testing documentation)

2012-11-30 Thread Tim Graham
Bumping this in hopes of getting a couple more reviews. Please leave comments on the ticket or pull request: https://code.djangoproject.com/ticket/9962 https://github.com/django/django/pull/548 On Tuesday, November 13, 2012 3:54:15 PM UTC-5, Tim Graham wrote: > > This looks great, thanks for your

Modify .save() implementation

2012-11-30 Thread Anssi Kääriäinen
I would like to change the implementation of .save(). In the following case: s = SomeModel.objects.get(pk=somepk) s.somefield = val s.save() we currently do this: SELECT (from .get()) SELECT (from .save()) UPDATE The second SELECT is redundant. We have knowledge that the model was loaded from t

Re: Yet another __ne not equal discussion

2012-11-30 Thread Anssi Kääriäinen
On 30 marras, 19:16, Florian Apolloner wrote: > On Friday, November 30, 2012 6:12:43 PM UTC+1, Shai Berger wrote: > > > live_articles = Article.objects.exclude(status="archived") > > live_cats = Category.objects.filter(article__in=live_articles) > > That works and it has the positive side-effect

Re: Yet another __ne not equal discussion

2012-11-30 Thread Anssi Kääriäinen
On 30 marras, 15:29, Marek Brzóska wrote: > Has the matter been completely put away? > > I would like to bring it up again. > > I have Articles and Categories. An Article belongs to Categories: > > class Category(model): >   pass > class Article(model): >   category = ManyToManyField(Category) >  

Re: Yet another __ne not equal discussion

2012-11-30 Thread Florian Apolloner
On Friday, November 30, 2012 6:12:43 PM UTC+1, Shai Berger wrote: > > live_articles = Article.objects.exclude(status="archived") > live_cats = Category.objects.filter(article__in=live_articles) > That works and it has the positive side-effect to kill any mysql server in a matter of seconds :)

Re: Yet another __ne not equal discussion

2012-11-30 Thread Shai Berger
On Friday 30 November 2012, Marek Brzóska wrote: > Has the matter been completely put away? > > I would like to bring it up again. > > I have Articles and Categories. An Article belongs to Categories: > > class Category(model): > pass > class Article(model): > category = ManyToManyField(Cate

Re: Yet another __ne not equal discussion

2012-11-30 Thread Alex Ogier
To be fair, the query you describe is significantly more expensive than Marek's query. On Fri, Nov 30, 2012 at 10:20 AM, Tom Evans wrote: > On Fri, Nov 30, 2012 at 2:51 PM, Marek Brzóska > wrote: > > > > > > > > 2012/11/30 Tom Evans > >> > >> On Fri, Nov 30, 2012 at 1:29 PM, Marek Brzóska > >

Re: Yet another __ne not equal discussion

2012-11-30 Thread Marek Brzóska
> > >> What precisely is wrong with: > >> > >> Category.objects.exclude(article_status='archived') > > > > It excludes all categories that have at least one archived article. > > > > And I want categories that have at least one NOT archived article. > > > > Example: I have one category: politics. I

Re: Yet another __ne not equal discussion

2012-11-30 Thread Tom Evans
On Fri, Nov 30, 2012 at 2:51 PM, Marek Brzóska wrote: > > > > 2012/11/30 Tom Evans >> >> On Fri, Nov 30, 2012 at 1:29 PM, Marek Brzóska >> wrote: >> > Has the matter been completely put away? >> > >> > I would like to bring it up again. >> > >> > I have Articles and Categories. An Article belong

Re: Yet another __ne not equal discussion

2012-11-30 Thread Marek Brzóska
2012/11/30 Tom Evans > On Fri, Nov 30, 2012 at 1:29 PM, Marek Brzóska > wrote: > > Has the matter been completely put away? > > > > I would like to bring it up again. > > > > I have Articles and Categories. An Article belongs to Categories: > > > > class Category(model): > > pass > > class Art

Re: Yet another __ne not equal discussion

2012-11-30 Thread Tom Evans
On Fri, Nov 30, 2012 at 1:29 PM, Marek Brzóska wrote: > Has the matter been completely put away? > > I would like to bring it up again. > > I have Articles and Categories. An Article belongs to Categories: > > class Category(model): > pass > class Article(model): > category = ManyToManyField(C

Re: Admin Javascript Roadmap/Brainstorming

2012-11-30 Thread Travis Swicegood
On Nov 30, 2012, at 7:42 AM, Florian Apolloner wrote: > Hi Tyler, > > On Wednesday, November 28, 2012 6:24:57 PM UTC+1, Tyler Ball wrote: > - jQuery: Inlines are written as a jQuery plugin, DateTime and i18n are > written without jQuery. The version of jQuery included is 1.4.2, which is ~3 > y

Re: Yet another __ne not equal discussion

2012-11-30 Thread Marek Brzóska
Has the matter been completely put away? I would like to bring it up again. I have Articles and Categories. An Article belongs to Categories: class Category(model): pass class Article(model): category = ManyToManyField(Category) status = CharField(max_length=10) Now I want all categories

Re: Admin Javascript Roadmap/Brainstorming

2012-11-30 Thread Florian Apolloner
Hi Tyler, On Wednesday, November 28, 2012 6:24:57 PM UTC+1, Tyler Ball wrote: > > - jQuery: Inlines are written as a jQuery plugin, DateTime and i18n are > written without jQuery. The version of jQuery included is 1.4.2, which is > ~3 years old. Do we want to have jQuery in this project? I think

Re: I'd like to make a contribution to the wiki

2012-11-30 Thread Harry Percival
Hi Russell, thanks for getting back to us. Here's our info: Host: PythonAnywhere -- https://www.pythonanywhere.com Flavor: uWSGI Notes: Free, one-click Django setup. PythonAnywhere is a full cloud-based development environment, so as well as hosting your Django app, you can edit your code, run s