Re: django version 1.10.3 django restframework error: 'module' object has no attribute 'snippet_list'

2016-11-30 Thread MMeent
Hi, I'd like to mention that this is not the correct mailing list for issues like this, but this error is due to your 'views.py' not having the 'snippet_list' function [1], and therefore not being able to be imported. I hope this helps, but this is a mailing list for django (internal) developm

django version 1.10.3 django restframework error: 'module' object has no attribute 'snippet_list'

2016-11-30 Thread 马鑫
Tutorial : http://www.django-rest-framework.org/tutorial/1-serialization/# Error message: (env)[root@iZ281jn3x0bZ tutorial]# python manage.py runserver 115.xx.xxx.32:8000 Performing system checks... Unhandled exception in thread started by Traceback (most recent call last): File "/root/dj

Re: Admin changelist turns QueryDict into dict

2016-11-30 Thread Adam Johnson
I suspect it was simply to make it easier to work with. I'd suggest you create a ticket at https://code.djangoproject.com/newticket and then try making the change and seeing if Django's test suite still passes. All the information you should need is at https://docs.djangoproject.com/en/dev/inte

Re: Admin changelist turns QueryDict into dict

2016-11-30 Thread Florian Apolloner
Hi Jonas, usually QueryDict are immutable, therefore the deletion of the params the line below does not work. Constructing a new mutable querydict should be fine though. Cheers, Florian On Wednesday, November 30, 2016 at 10:17:49 PM UTC+1, Jonas von Poser wrote: > > Hi everybody, > > we've run

Admin changelist turns QueryDict into dict

2016-11-30 Thread Jonas von Poser
Hi everybody, we've run into an interesting situation: we implemented a custom SimpleListFilter for the admin which presents the choices as a list of checkboxes. Pressing "submit" sends the list to the backend for filtering. Unfortunately, this doesn't really work well and it took us a while to

Re: Window expressions, #26608

2016-11-30 Thread Mads Jensen
On Tuesday, November 29, 2016 at 11:04:49 PM UTC+1, Josh Smeaton wrote: > > Adam, are you thinking we should be adding something like > Model.objects.window(), or just allowing Window-type expressions on > backends that have a specific feature flag? Does the compiler need to get > involved at al

Re: Implicit ForeignKey index and unique_together

2016-11-30 Thread emorley
I agree - #24082 is unrelated since it's PostgresSQL and text field specific, presumably resulting from: https://github.com/django/django/blob/8eb56f3c786b4dd7f78a60145ae2e483e24b62c1/django/db/backends/postgresql/schema.py#L34-L48 The issue in this thread is specific to the interaction between

Re: Query on Third party DB integration with DJango

2016-11-30 Thread Michael Manfre
Hi Reetika, This mailing list is for the development of Django. Questions and discussions related to the use of Django belong on the django-users mailing list. To spare you the double post, the version of django-mssql you're using doesn't support the version of Django. https://docs.djangoproject.

Query on Third party DB integration with DJango

2016-11-30 Thread Reetika Aggarwal
Hi, Getting below exception while makingMigrations django.core.exceptions.ImproperlyConfigured: 'sqlserver_ado' isn't an available database backend. Try using 'django.db.backends.XXX', where XXX is one of: 'mysql', 'oracle', 'postgresql', 'sqlite3' Error was: No module named 'django.db.back

Re: Window expressions, #26608

2016-11-30 Thread Mads Jensen
On Tuesday, November 29, 2016 at 10:35:34 PM UTC+1, Adam Johnson wrote: > > As to your point 1: > > >> Since this is specific to postgres > > > Well, Window expressions aren't specific to Postgres: > >- They exist in Oracle >- They exist in MariaDB 10.2 which is in beta and will be GA a