Re: Should annotations allow model field constraints?

2014-12-04 Thread Anssi Kääriäinen
On Thu, 2014-12-04 at 18:04 -0800, Josh Smeaton wrote: > > I've implemented https://github.com/django/django/pull/3655/ which > effectively ignores the max_digits and decimal_places arguments in the > base expression class. Subclasses are free to enforce validation if it > is necessary. Further,

Re: delegating our static file serving

2014-12-04 Thread Collin Anderson
Hi All, I'm pretty interested in getting secure and _somewhat_ efficient static file serving in Django. Quick history: 2005 - Jacob commits #428: a "static pages" view. Note that this view should only be used for testing!" 2010 - Jannis adds staticfiles. Serving via django is considered "gross

Re: Status of #15619: logout via POST, but not GET

2014-12-04 Thread Collin Anderson
I was just thinking about this. I agree that a GET causing logout is wrong, and we need to not break things and I agree we need to keep the original view untouched so we don't break anything. _maybe_ deprecate it. The admin could begin using the new view right away. On Wednesday, December 3, 20

Should annotations allow model field constraints?

2014-12-04 Thread Josh Smeaton
Trac user jbg has found a regression with the aggregation/annotation refactor #14030. The crux of the problem comes down to whether annotations and aggregations should respect constraints on model fields. The specific example raised is as follows: Model.objects.aggregate( sum_price=Sum('pri

Re: ManyToManyField with rating using 'through' on each ManyToMany relation in Django

2014-12-04 Thread inoyon artlover KLANGRAUSCH
Many thanks for the answer! Very Now I made a big step forwards: class CustomInterestsInline(admin.TabularInline): model = models.CustomInterests extra = 9 class CustomSportsInlilne(admin.TabularInline): model = models.CustomSports extra = 9 class CustomMusicInline(admin.Tabul

Re: ManyToManyField with rating using 'through' on each ManyToMany relation in Django

2014-12-04 Thread inoyon artlover KLANGRAUSCH
Many thanks for the answer! Very Now I made a big step forwards: class CustomInterestsInline(admin.TabularInline): model = models.CustomInterests extra = 9 class CustomSportsInlilne(admin.TabularInline): model = models.CustomSports extra = 9 class CustomMusicInline(admin.Tabul

Re: ManyToManyField with rating using 'through' on each ManyToMany relation in Django

2014-12-04 Thread inoyon artlover KLANGRAUSCH
Sorry about this... Am Donnerstag, 4. Dezember 2014 09:49:48 UTC+1 schrieb Florian Apolloner: > > Hi, > > this mailing list is about the development of Django itself. Usage > questions should go to django-users. > > On Thursday, December 4, 2014 1:16:13 AM UTC+1, inoyon artlover > KLANGRAUSCH w

Need help about pull request #3677

2014-12-04 Thread sokandpal
Please read description of pull request https://github.com/django/django/pull/3677 and see changes (pull request is not big). Then see tests.test_runner.tests.Sqlite3InMemoryTestDbs#test_transaction_support The problem is that DiscoverRunner(verbosity=0).setup_databases() is broking something

Re: ManyToManyField with rating using 'through' on each ManyToMany relation in Django

2014-12-04 Thread Florian Apolloner
Hi, this mailing list is about the development of Django itself. Usage questions should go to django-users. On Thursday, December 4, 2014 1:16:13 AM UTC+1, inoyon artlover KLANGRAUSCH wrote: > > I am very beginner in the programming world, so please forgive my lack of > understanding... > > Th

Re: ManyToManyField with rating using 'through' on each ManyToMany relation in Django

2014-12-04 Thread Yann Fouillat
Hi, > Startet lot of investigation and the 'through' option seems to be the > solution? Don't got it really because in my Admin there is NO field to > choose some 'interests' and an option to rate it. Did you try using InlineModelAdmin (https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#wor