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
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
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
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
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
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)
>
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 :)
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
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
> >
>
> >> 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
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
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
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
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
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
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
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
17 matches
Mail list logo