Received: by mail.netbsd.org (Postfix, from userid 605) id 7D7B0851A7; Tue, 7 Aug 2018 09:54:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 657C485050 for ; Tue, 7 Aug 2018 09:54:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id N1JNRDCvcaVQ for ; Tue, 7 Aug 2018 09:53:54 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 1696B84D39 for ; Tue, 7 Aug 2018 09:53:54 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 0F5BBFBEC; Tue, 7 Aug 2018 09:53:54 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_153363563436020" MIME-Version: 1.0 Date: Tue, 7 Aug 2018 09:53:54 +0000 From: "Adam Ciarcinski" Subject: CVS commit: pkgsrc/www/py-django2 To: pkgsrc-changes@NetBSD.org Reply-To: adam@netbsd.org X-Mailer: log_accum Message-Id: <20180807095354.0F5BBFBEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_153363563436020 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Module Name: pkgsrc Committed By: adam Date: Tue Aug 7 09:53:53 UTC 2018 Modified Files: pkgsrc/www/py-django2: Makefile PLIST distinfo Log Message: py-django2: updated to 2.1 2.1: Model “view” permission django.contrib.admin ModelAdmin.search_fields now accepts any lookup such as field__exact. jQuery is upgraded from version 2.2.3 to 3.3.1. The new ModelAdmin.delete_queryset() method allows customizing the deletion process of the “delete selected objects” action. You can now override the default admin site. The new ModelAdmin.sortable_by attribute and ModelAdmin.get_sortable_by() method allow limiting the columns that can be sorted in the change list page. The admin_order_field attribute for elements in ModelAdmin.list_display may now be a query expression. The new ModelAdmin.get_deleted_objects() method allows customizing the deletion process of the delete view and the “delete selected” action. The actions.html, change_list_results.html, date_hierarchy.html, pagination.html, prepopulated_fields_js.html, search_form.html, and submit_line.html templates can now be overridden per app or per model (besides overridden globally). The admin change list and change form object tools can now be overridden per app, per model, or globally with change_list_object_tools.html and change_form_object_tools.html templates. InlineModelAdmin.has_add_permission() is now passed the parent object as the second positional argument, obj. Admin actions may now specify permissions to limit their availability to certain users. django.contrib.auth createsuperuser now gives a prompt to allow bypassing the AUTH_PASSWORD_VALIDATORS checks. UserCreationForm and UserChangeForm no longer need to be rewritten for a custom user model. django.contrib.gis The new GEOSGeometry.buffer_with_style() method is a version of buffer() that allows customizing the style of the buffer. OpenLayersWidget is now based on OpenLayers 4.6.5 (previously 3.20.1). django.contrib.sessions Added the SESSION_COOKIE_SAMESITE setting to set the SameSite cookie flag on session cookies. Cache The local-memory cache backend now uses a least-recently-used (LRU) culling strategy rather than a pseudo-random one. The new touch() method of the low-level cache API updates the timeout of cache keys. CSRF Added the CSRF_COOKIE_SAMESITE setting to set the SameSite cookie flag on CSRF cookies. Forms The widget for ImageField now renders with the HTML attribute accept="image/*". Internationalization Added the get_supported_language_variant() function. Untranslated strings for territorial language variants now use the translations of the generic language. For example, untranslated pt_BR strings use pt translations. Management Commands The new inspectdb --include-views option allows creating models for database views. The BaseCommand class now uses a custom help formatter so that the standard options like --verbosity or --settings appear last in the help output, giving a more prominent position to subclassed command’s options. Migrations Added support for serialization of functools.partialmethod objects. To support frozen environments, migrations may be loaded from .pyc files. Models Models can now use __init_subclass__() from PEP 487. A BinaryField may now be set to editable=True if you wish to include it in model forms. A number of new text database functions are added: Chr, Left, LPad, LTrim, Ord, Repeat, Replace, Right, RPad, RTrim, and Trim. The new TruncWeek function truncates DateField and DateTimeField to the Monday of a week. Query expressions can now be negated using a minus sign. QuerySet.order_by() and distinct(*fields) now support using field transforms. BooleanField can now be null=True. This is encouraged instead of NullBooleanField, which will likely be deprecated in the future. The new QuerySet.explain() method displays the database’s execution plan of a queryset’s query. QuerySet.raw() now supports prefetch_related(). Requests and Responses Added HttpRequest.get_full_path_info(). Added the samesite argument to HttpResponse.set_cookie() to allow setting the SameSite cookie flag. The new as_attachment argument for FileResponse sets the Content-Disposition header to make the browser ask if the user wants to download the file. FileResponse also tries to set the Content-Type and Content-Length headers where appropriate. Templates The new json_script filter safely outputs a Python object as JSON, wrapped in a