This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'PCIDSK' | |
'netCDF' | |
'PDS4' | |
'VICAR' | |
'JP2OpenJPEG' | |
'PDF' | |
'MBTiles' | |
'EEDA' | |
'OGCAPI' | |
'ESRI Shapefile' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(django) PS C:\Users\smith\PycharmProjects\django\tests> python .\runtests.py --shuffle | |
Testing against Django installed in 'c:\users\smith\pycharmprojects\django\django' with up to 8 processes | |
Using shuffle seed: 2714725009 (generated) | |
Found 15614 test(s). | |
Creating test database for alias 'default'... | |
Cloning test database for alias 'default'... | |
Cloning test database for alias 'default'... | |
Cloning test database for alias 'default'... | |
Cloning test database for alias 'default'... | |
Cloning test database for alias 'default'... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: test_bulk_update (postgres_tests.test_bulk_update.BulkSaveTests) [<object object at 0x000002D559D6DFE0>] (model=<class 'postgres_tests.models.HStoreModel'>, field='field') | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "c:\users\smith\pycharmprojects\django\django\db\backends\utils.py", line 89, in _execute | |
return self.cursor.execute(sql, params) | |
psycopg2.ProgrammingError: can't adapt type 'dict' | |
The above exception was the direct cause of the following exception: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 554a7430a2947f67e2316a6775654c66070d75a2 | |
Author: David Smith <smithdc@gmail.com> | |
Date: Tue Oct 26 15:55:57 2021 +0100 | |
Sample class attribute patch | |
diff --git a/django/forms/boundfield.py b/django/forms/boundfield.py | |
index 5bbfcbe41c..a971407d0c 100644 | |
--- a/django/forms/boundfield.py | |
+++ b/django/forms/boundfield.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyperf | |
import django | |
from django.conf import settings | |
from django.forms import CharField, FloatField, Form, HiddenInput, IntegerField | |
from django.template.base import Template | |
from django.template.context import Context | |
from django.utils.functional import SimpleLazyObject | |
from crispy_forms.helper import FormHelper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf.global_settings import INSTALLED_APPS | |
import django | |
from django.conf import settings | |
from django.forms import DecimalField | |
import pyperf | |
settings.configure(INSTALLED_APPS= ('__main__',)) | |
django.setup() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf.global_settings import INSTALLED_APPS | |
import django | |
from django.db import models | |
from django.conf import settings | |
import pyperf | |
settings.configure(INSTALLED_APPS= ('__main__',)) | |
django.setup() | |
# models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import django | |
from django import forms | |
from django.conf import settings | |
from django.forms import Media | |
settings.configure() | |
django.setup() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyperf | |
import django | |
from django.conf import settings | |
from django.urls import re_path, resolve | |
settings.configure(ROOT_URLCONF=__name__) | |
django.setup() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyperf | |
from django.utils.functional import cached_property as dj_cached_property | |
from functools import cached_property as py_cached_property | |
class TestClass: | |
@dj_cached_property | |
def dj_cached(self): | |
return "Test" |
NewerOlder