django-asyncio 6.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- django/__init__.py +24 -0
- django/__main__.py +10 -0
- django/apps/__init__.py +4 -0
- django/apps/config.py +274 -0
- django/apps/registry.py +438 -0
- django/conf/__init__.py +423 -0
- django/conf/app_template/__init__.py-tpl +0 -0
- django/conf/app_template/admin.py-tpl +3 -0
- django/conf/app_template/apps.py-tpl +5 -0
- django/conf/app_template/migrations/__init__.py-tpl +0 -0
- django/conf/app_template/models.py-tpl +3 -0
- django/conf/app_template/tests.py-tpl +3 -0
- django/conf/app_template/views.py-tpl +3 -0
- django/conf/global_settings.py +701 -0
- django/conf/locale/__init__.py +636 -0
- django/conf/locale/af/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/af/LC_MESSAGES/django.po +1345 -0
- django/conf/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ar/LC_MESSAGES/django.po +1443 -0
- django/conf/locale/ar/__init__.py +0 -0
- django/conf/locale/ar/formats.py +21 -0
- django/conf/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ar_DZ/LC_MESSAGES/django.po +1397 -0
- django/conf/locale/ar_DZ/__init__.py +0 -0
- django/conf/locale/ar_DZ/formats.py +29 -0
- django/conf/locale/ast/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ast/LC_MESSAGES/django.po +1237 -0
- django/conf/locale/az/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/az/LC_MESSAGES/django.po +1381 -0
- django/conf/locale/az/__init__.py +0 -0
- django/conf/locale/az/formats.py +30 -0
- django/conf/locale/be/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/be/LC_MESSAGES/django.po +1424 -0
- django/conf/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/bg/LC_MESSAGES/django.po +1353 -0
- django/conf/locale/bg/__init__.py +0 -0
- django/conf/locale/bg/formats.py +21 -0
- django/conf/locale/bn/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/bn/LC_MESSAGES/django.po +1218 -0
- django/conf/locale/bn/__init__.py +0 -0
- django/conf/locale/bn/formats.py +32 -0
- django/conf/locale/br/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/br/LC_MESSAGES/django.po +1297 -0
- django/conf/locale/bs/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/bs/LC_MESSAGES/django.po +1238 -0
- django/conf/locale/bs/__init__.py +0 -0
- django/conf/locale/bs/formats.py +21 -0
- django/conf/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ca/LC_MESSAGES/django.po +1384 -0
- django/conf/locale/ca/__init__.py +0 -0
- django/conf/locale/ca/formats.py +30 -0
- django/conf/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ckb/LC_MESSAGES/django.po +1367 -0
- django/conf/locale/ckb/__init__.py +0 -0
- django/conf/locale/ckb/formats.py +21 -0
- django/conf/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/cs/LC_MESSAGES/django.po +1421 -0
- django/conf/locale/cs/__init__.py +0 -0
- django/conf/locale/cs/formats.py +43 -0
- django/conf/locale/cy/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/cy/LC_MESSAGES/django.po +1278 -0
- django/conf/locale/cy/__init__.py +0 -0
- django/conf/locale/cy/formats.py +33 -0
- django/conf/locale/da/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/da/LC_MESSAGES/django.po +1374 -0
- django/conf/locale/da/__init__.py +0 -0
- django/conf/locale/da/formats.py +26 -0
- django/conf/locale/de/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/de/LC_MESSAGES/django.po +1401 -0
- django/conf/locale/de/__init__.py +0 -0
- django/conf/locale/de/formats.py +29 -0
- django/conf/locale/de_CH/__init__.py +0 -0
- django/conf/locale/de_CH/formats.py +33 -0
- django/conf/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/dsb/LC_MESSAGES/django.po +1411 -0
- django/conf/locale/el/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/el/LC_MESSAGES/django.po +1332 -0
- django/conf/locale/el/__init__.py +0 -0
- django/conf/locale/el/formats.py +34 -0
- django/conf/locale/en/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/en/LC_MESSAGES/django.po +1655 -0
- django/conf/locale/en/__init__.py +0 -0
- django/conf/locale/en/formats.py +65 -0
- django/conf/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/en_AU/LC_MESSAGES/django.po +1299 -0
- django/conf/locale/en_AU/__init__.py +0 -0
- django/conf/locale/en_AU/formats.py +41 -0
- django/conf/locale/en_CA/__init__.py +0 -0
- django/conf/locale/en_CA/formats.py +31 -0
- django/conf/locale/en_GB/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/en_GB/LC_MESSAGES/django.po +1221 -0
- django/conf/locale/en_GB/__init__.py +0 -0
- django/conf/locale/en_GB/formats.py +41 -0
- django/conf/locale/en_IE/__init__.py +0 -0
- django/conf/locale/en_IE/formats.py +37 -0
- django/conf/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/eo/LC_MESSAGES/django.po +1331 -0
- django/conf/locale/eo/__init__.py +0 -0
- django/conf/locale/eo/formats.py +44 -0
- django/conf/locale/es/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/es/LC_MESSAGES/django.po +1447 -0
- django/conf/locale/es/__init__.py +0 -0
- django/conf/locale/es/formats.py +30 -0
- django/conf/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/es_AR/LC_MESSAGES/django.po +1397 -0
- django/conf/locale/es_AR/__init__.py +0 -0
- django/conf/locale/es_AR/formats.py +30 -0
- django/conf/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/es_CO/LC_MESSAGES/django.po +1258 -0
- django/conf/locale/es_CO/__init__.py +0 -0
- django/conf/locale/es_CO/formats.py +26 -0
- django/conf/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/es_MX/LC_MESSAGES/django.po +1279 -0
- django/conf/locale/es_MX/__init__.py +0 -0
- django/conf/locale/es_MX/formats.py +26 -0
- django/conf/locale/es_NI/__init__.py +0 -0
- django/conf/locale/es_NI/formats.py +26 -0
- django/conf/locale/es_PR/__init__.py +0 -0
- django/conf/locale/es_PR/formats.py +27 -0
- django/conf/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/es_VE/LC_MESSAGES/django.po +1260 -0
- django/conf/locale/et/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/et/LC_MESSAGES/django.po +1371 -0
- django/conf/locale/et/__init__.py +0 -0
- django/conf/locale/et/formats.py +21 -0
- django/conf/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/eu/LC_MESSAGES/django.po +1313 -0
- django/conf/locale/eu/__init__.py +0 -0
- django/conf/locale/eu/formats.py +21 -0
- django/conf/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/fa/LC_MESSAGES/django.po +1351 -0
- django/conf/locale/fa/__init__.py +0 -0
- django/conf/locale/fa/formats.py +21 -0
- django/conf/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/fi/LC_MESSAGES/django.po +1341 -0
- django/conf/locale/fi/__init__.py +0 -0
- django/conf/locale/fi/formats.py +36 -0
- django/conf/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/fr/LC_MESSAGES/django.po +1429 -0
- django/conf/locale/fr/__init__.py +0 -0
- django/conf/locale/fr/formats.py +27 -0
- django/conf/locale/fr_BE/__init__.py +0 -0
- django/conf/locale/fr_BE/formats.py +32 -0
- django/conf/locale/fr_CA/__init__.py +0 -0
- django/conf/locale/fr_CA/formats.py +30 -0
- django/conf/locale/fr_CH/__init__.py +0 -0
- django/conf/locale/fr_CH/formats.py +36 -0
- django/conf/locale/fy/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/fy/LC_MESSAGES/django.po +1218 -0
- django/conf/locale/fy/__init__.py +0 -0
- django/conf/locale/fy/formats.py +21 -0
- django/conf/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ga/LC_MESSAGES/django.po +1426 -0
- django/conf/locale/ga/__init__.py +0 -0
- django/conf/locale/ga/formats.py +21 -0
- django/conf/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/gd/LC_MESSAGES/django.po +1386 -0
- django/conf/locale/gd/__init__.py +0 -0
- django/conf/locale/gd/formats.py +21 -0
- django/conf/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/gl/LC_MESSAGES/django.po +1375 -0
- django/conf/locale/gl/__init__.py +0 -0
- django/conf/locale/gl/formats.py +21 -0
- django/conf/locale/he/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/he/LC_MESSAGES/django.po +1373 -0
- django/conf/locale/he/__init__.py +0 -0
- django/conf/locale/he/formats.py +21 -0
- django/conf/locale/hi/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/hi/LC_MESSAGES/django.po +1254 -0
- django/conf/locale/hi/__init__.py +0 -0
- django/conf/locale/hi/formats.py +21 -0
- django/conf/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/hr/LC_MESSAGES/django.po +1398 -0
- django/conf/locale/hr/__init__.py +0 -0
- django/conf/locale/hr/formats.py +44 -0
- django/conf/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/hsb/LC_MESSAGES/django.po +1403 -0
- django/conf/locale/ht/__init__.py +0 -0
- django/conf/locale/ht/formats.py +48 -0
- django/conf/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/hu/LC_MESSAGES/django.po +1384 -0
- django/conf/locale/hu/__init__.py +0 -0
- django/conf/locale/hu/formats.py +30 -0
- django/conf/locale/hy/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/hy/LC_MESSAGES/django.po +1237 -0
- django/conf/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ia/LC_MESSAGES/django.po +1289 -0
- django/conf/locale/id/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/id/LC_MESSAGES/django.po +1357 -0
- django/conf/locale/id/__init__.py +0 -0
- django/conf/locale/id/formats.py +49 -0
- django/conf/locale/ig/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ig/LC_MESSAGES/django.po +1271 -0
- django/conf/locale/ig/__init__.py +0 -0
- django/conf/locale/ig/formats.py +32 -0
- django/conf/locale/io/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/io/LC_MESSAGES/django.po +1231 -0
- django/conf/locale/is/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/is/LC_MESSAGES/django.po +1302 -0
- django/conf/locale/is/__init__.py +0 -0
- django/conf/locale/is/formats.py +21 -0
- django/conf/locale/it/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/it/LC_MESSAGES/django.po +1387 -0
- django/conf/locale/it/__init__.py +0 -0
- django/conf/locale/it/formats.py +43 -0
- django/conf/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ja/LC_MESSAGES/django.po +1366 -0
- django/conf/locale/ja/__init__.py +0 -0
- django/conf/locale/ja/formats.py +21 -0
- django/conf/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ka/LC_MESSAGES/django.po +1239 -0
- django/conf/locale/ka/__init__.py +0 -0
- django/conf/locale/ka/formats.py +48 -0
- django/conf/locale/kab/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/kab/LC_MESSAGES/django.po +1211 -0
- django/conf/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/kk/LC_MESSAGES/django.po +1223 -0
- django/conf/locale/km/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/km/LC_MESSAGES/django.po +1251 -0
- django/conf/locale/km/__init__.py +0 -0
- django/conf/locale/km/formats.py +21 -0
- django/conf/locale/kn/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/kn/LC_MESSAGES/django.po +1232 -0
- django/conf/locale/kn/__init__.py +0 -0
- django/conf/locale/kn/formats.py +21 -0
- django/conf/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ko/LC_MESSAGES/django.po +1380 -0
- django/conf/locale/ko/__init__.py +0 -0
- django/conf/locale/ko/formats.py +54 -0
- django/conf/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ky/LC_MESSAGES/django.po +1279 -0
- django/conf/locale/ky/__init__.py +0 -0
- django/conf/locale/ky/formats.py +32 -0
- django/conf/locale/lb/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/lb/LC_MESSAGES/django.po +1213 -0
- django/conf/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/lt/LC_MESSAGES/django.po +1410 -0
- django/conf/locale/lt/__init__.py +0 -0
- django/conf/locale/lt/formats.py +45 -0
- django/conf/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/lv/LC_MESSAGES/django.po +1406 -0
- django/conf/locale/lv/__init__.py +0 -0
- django/conf/locale/lv/formats.py +46 -0
- django/conf/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/mk/LC_MESSAGES/django.po +1273 -0
- django/conf/locale/mk/__init__.py +0 -0
- django/conf/locale/mk/formats.py +40 -0
- django/conf/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ml/LC_MESSAGES/django.po +1274 -0
- django/conf/locale/ml/__init__.py +0 -0
- django/conf/locale/ml/formats.py +43 -0
- django/conf/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/mn/LC_MESSAGES/django.po +1345 -0
- django/conf/locale/mn/__init__.py +0 -0
- django/conf/locale/mn/formats.py +21 -0
- django/conf/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/mr/LC_MESSAGES/django.po +1280 -0
- django/conf/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ms/LC_MESSAGES/django.po +1286 -0
- django/conf/locale/ms/__init__.py +0 -0
- django/conf/locale/ms/formats.py +38 -0
- django/conf/locale/my/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/my/LC_MESSAGES/django.po +1197 -0
- django/conf/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/nb/LC_MESSAGES/django.po +1324 -0
- django/conf/locale/nb/__init__.py +0 -0
- django/conf/locale/nb/formats.py +41 -0
- django/conf/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ne/LC_MESSAGES/django.po +1253 -0
- django/conf/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/nl/LC_MESSAGES/django.po +1376 -0
- django/conf/locale/nl/__init__.py +0 -0
- django/conf/locale/nl/formats.py +92 -0
- django/conf/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/nn/LC_MESSAGES/django.po +1305 -0
- django/conf/locale/nn/__init__.py +0 -0
- django/conf/locale/nn/formats.py +41 -0
- django/conf/locale/os/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/os/LC_MESSAGES/django.po +1235 -0
- django/conf/locale/pa/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/pa/LC_MESSAGES/django.po +1213 -0
- django/conf/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/pl/LC_MESSAGES/django.po +1456 -0
- django/conf/locale/pl/__init__.py +0 -0
- django/conf/locale/pl/formats.py +30 -0
- django/conf/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/pt/LC_MESSAGES/django.po +1340 -0
- django/conf/locale/pt/__init__.py +0 -0
- django/conf/locale/pt/formats.py +39 -0
- django/conf/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/pt_BR/LC_MESSAGES/django.po +1423 -0
- django/conf/locale/pt_BR/__init__.py +0 -0
- django/conf/locale/pt_BR/formats.py +34 -0
- django/conf/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ro/LC_MESSAGES/django.po +1323 -0
- django/conf/locale/ro/__init__.py +0 -0
- django/conf/locale/ro/formats.py +35 -0
- django/conf/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ru/LC_MESSAGES/django.po +1456 -0
- django/conf/locale/ru/__init__.py +0 -0
- django/conf/locale/ru/formats.py +30 -0
- django/conf/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/sk/LC_MESSAGES/django.po +1429 -0
- django/conf/locale/sk/__init__.py +0 -0
- django/conf/locale/sk/formats.py +30 -0
- django/conf/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/sl/LC_MESSAGES/django.po +1351 -0
- django/conf/locale/sl/__init__.py +0 -0
- django/conf/locale/sl/formats.py +44 -0
- django/conf/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/sq/LC_MESSAGES/django.po +1371 -0
- django/conf/locale/sq/__init__.py +0 -0
- django/conf/locale/sq/formats.py +21 -0
- django/conf/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/sr/LC_MESSAGES/django.po +1396 -0
- django/conf/locale/sr/__init__.py +0 -0
- django/conf/locale/sr/formats.py +44 -0
- django/conf/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/sr_Latn/LC_MESSAGES/django.po +1395 -0
- django/conf/locale/sr_Latn/__init__.py +0 -0
- django/conf/locale/sr_Latn/formats.py +44 -0
- django/conf/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/sv/LC_MESSAGES/django.po +1399 -0
- django/conf/locale/sv/__init__.py +0 -0
- django/conf/locale/sv/formats.py +35 -0
- django/conf/locale/sw/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/sw/LC_MESSAGES/django.po +1221 -0
- django/conf/locale/ta/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ta/LC_MESSAGES/django.po +1230 -0
- django/conf/locale/ta/__init__.py +0 -0
- django/conf/locale/ta/formats.py +21 -0
- django/conf/locale/te/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/te/LC_MESSAGES/django.po +1233 -0
- django/conf/locale/te/__init__.py +0 -0
- django/conf/locale/te/formats.py +21 -0
- django/conf/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/tg/LC_MESSAGES/django.po +1299 -0
- django/conf/locale/tg/__init__.py +0 -0
- django/conf/locale/tg/formats.py +32 -0
- django/conf/locale/th/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/th/LC_MESSAGES/django.po +1208 -0
- django/conf/locale/th/__init__.py +0 -0
- django/conf/locale/th/formats.py +33 -0
- django/conf/locale/tk/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/tk/LC_MESSAGES/django.po +1337 -0
- django/conf/locale/tk/__init__.py +0 -0
- django/conf/locale/tk/formats.py +32 -0
- django/conf/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/tr/LC_MESSAGES/django.po +1391 -0
- django/conf/locale/tr/__init__.py +0 -0
- django/conf/locale/tr/formats.py +30 -0
- django/conf/locale/tt/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/tt/LC_MESSAGES/django.po +1211 -0
- django/conf/locale/udm/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/udm/LC_MESSAGES/django.po +1197 -0
- django/conf/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ug/LC_MESSAGES/django.po +1386 -0
- django/conf/locale/ug/__init__.py +0 -0
- django/conf/locale/ug/formats.py +14 -0
- django/conf/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/uk/LC_MESSAGES/django.po +1418 -0
- django/conf/locale/uk/__init__.py +0 -0
- django/conf/locale/uk/formats.py +35 -0
- django/conf/locale/ur/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/ur/LC_MESSAGES/django.po +1277 -0
- django/conf/locale/uz/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/uz/LC_MESSAGES/django.po +1322 -0
- django/conf/locale/uz/__init__.py +0 -0
- django/conf/locale/uz/formats.py +30 -0
- django/conf/locale/vi/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/vi/LC_MESSAGES/django.po +1234 -0
- django/conf/locale/vi/__init__.py +0 -0
- django/conf/locale/vi/formats.py +21 -0
- django/conf/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/zh_Hans/LC_MESSAGES/django.po +1348 -0
- django/conf/locale/zh_Hans/__init__.py +0 -0
- django/conf/locale/zh_Hans/formats.py +42 -0
- django/conf/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/conf/locale/zh_Hant/LC_MESSAGES/django.po +1313 -0
- django/conf/locale/zh_Hant/__init__.py +0 -0
- django/conf/locale/zh_Hant/formats.py +42 -0
- django/conf/project_template/manage.py-tpl +22 -0
- django/conf/project_template/project_name/__init__.py-tpl +0 -0
- django/conf/project_template/project_name/asgi.py-tpl +16 -0
- django/conf/project_template/project_name/settings.py-tpl +127 -0
- django/conf/project_template/project_name/urls.py-tpl +22 -0
- django/conf/project_template/project_name/wsgi.py-tpl +16 -0
- django/conf/urls/__init__.py +9 -0
- django/conf/urls/i18n.py +39 -0
- django/conf/urls/static.py +30 -0
- django/contrib/__init__.py +0 -0
- django/contrib/admin/__init__.py +56 -0
- django/contrib/admin/actions.py +96 -0
- django/contrib/admin/apps.py +27 -0
- django/contrib/admin/checks.py +1407 -0
- django/contrib/admin/decorators.py +128 -0
- django/contrib/admin/exceptions.py +25 -0
- django/contrib/admin/filters.py +716 -0
- django/contrib/admin/formfields.py +42 -0
- django/contrib/admin/forms.py +31 -0
- django/contrib/admin/helpers.py +573 -0
- django/contrib/admin/locale/af/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/af/LC_MESSAGES/django.po +788 -0
- django/contrib/admin/locale/af/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/af/LC_MESSAGES/djangojs.po +312 -0
- django/contrib/admin/locale/am/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/am/LC_MESSAGES/django.po +636 -0
- django/contrib/admin/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ar/LC_MESSAGES/django.po +801 -0
- django/contrib/admin/locale/ar/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ar/LC_MESSAGES/djangojs.po +329 -0
- django/contrib/admin/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ar_DZ/LC_MESSAGES/django.po +738 -0
- django/contrib/admin/locale/ar_DZ/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ar_DZ/LC_MESSAGES/djangojs.po +280 -0
- django/contrib/admin/locale/ast/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ast/LC_MESSAGES/django.po +636 -0
- django/contrib/admin/locale/ast/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ast/LC_MESSAGES/djangojs.po +211 -0
- django/contrib/admin/locale/az/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/az/LC_MESSAGES/django.po +820 -0
- django/contrib/admin/locale/az/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/az/LC_MESSAGES/djangojs.po +364 -0
- django/contrib/admin/locale/be/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/be/LC_MESSAGES/django.po +822 -0
- django/contrib/admin/locale/be/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/be/LC_MESSAGES/djangojs.po +378 -0
- django/contrib/admin/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/bg/LC_MESSAGES/django.po +802 -0
- django/contrib/admin/locale/bg/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/bg/LC_MESSAGES/djangojs.po +320 -0
- django/contrib/admin/locale/bn/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/bn/LC_MESSAGES/django.po +713 -0
- django/contrib/admin/locale/bn/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/bn/LC_MESSAGES/djangojs.po +207 -0
- django/contrib/admin/locale/br/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/br/LC_MESSAGES/django.po +671 -0
- django/contrib/admin/locale/br/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/br/LC_MESSAGES/djangojs.po +217 -0
- django/contrib/admin/locale/bs/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/bs/LC_MESSAGES/django.po +657 -0
- django/contrib/admin/locale/bs/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/bs/LC_MESSAGES/djangojs.po +211 -0
- django/contrib/admin/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ca/LC_MESSAGES/django.po +810 -0
- django/contrib/admin/locale/ca/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ca/LC_MESSAGES/djangojs.po +318 -0
- django/contrib/admin/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ckb/LC_MESSAGES/django.po +822 -0
- django/contrib/admin/locale/ckb/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ckb/LC_MESSAGES/djangojs.po +364 -0
- django/contrib/admin/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/cs/LC_MESSAGES/django.po +835 -0
- django/contrib/admin/locale/cs/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/cs/LC_MESSAGES/djangojs.po +385 -0
- django/contrib/admin/locale/cy/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/cy/LC_MESSAGES/django.po +675 -0
- django/contrib/admin/locale/cy/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/cy/LC_MESSAGES/djangojs.po +222 -0
- django/contrib/admin/locale/da/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/da/LC_MESSAGES/django.po +817 -0
- django/contrib/admin/locale/da/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/da/LC_MESSAGES/djangojs.po +362 -0
- django/contrib/admin/locale/de/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/de/LC_MESSAGES/django.po +803 -0
- django/contrib/admin/locale/de/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/de/LC_MESSAGES/djangojs.po +331 -0
- django/contrib/admin/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/dsb/LC_MESSAGES/django.po +795 -0
- django/contrib/admin/locale/dsb/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/dsb/LC_MESSAGES/djangojs.po +323 -0
- django/contrib/admin/locale/el/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/el/LC_MESSAGES/django.po +737 -0
- django/contrib/admin/locale/el/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/el/LC_MESSAGES/djangojs.po +272 -0
- django/contrib/admin/locale/en/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/en/LC_MESSAGES/django.po +1022 -0
- django/contrib/admin/locale/en/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/en/LC_MESSAGES/djangojs.po +429 -0
- django/contrib/admin/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/en_AU/LC_MESSAGES/django.po +724 -0
- django/contrib/admin/locale/en_AU/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/en_AU/LC_MESSAGES/djangojs.po +266 -0
- django/contrib/admin/locale/en_GB/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/en_GB/LC_MESSAGES/django.po +691 -0
- django/contrib/admin/locale/en_GB/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/en_GB/LC_MESSAGES/djangojs.po +218 -0
- django/contrib/admin/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/eo/LC_MESSAGES/django.po +728 -0
- django/contrib/admin/locale/eo/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/eo/LC_MESSAGES/djangojs.po +268 -0
- django/contrib/admin/locale/es/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/es/LC_MESSAGES/django.po +847 -0
- django/contrib/admin/locale/es/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/es/LC_MESSAGES/djangojs.po +322 -0
- django/contrib/admin/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/es_AR/LC_MESSAGES/django.po +814 -0
- django/contrib/admin/locale/es_AR/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/es_AR/LC_MESSAGES/djangojs.po +329 -0
- django/contrib/admin/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/es_CO/LC_MESSAGES/django.po +697 -0
- django/contrib/admin/locale/es_CO/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/es_CO/LC_MESSAGES/djangojs.po +223 -0
- django/contrib/admin/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/es_MX/LC_MESSAGES/django.po +720 -0
- django/contrib/admin/locale/es_MX/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/es_MX/LC_MESSAGES/djangojs.po +219 -0
- django/contrib/admin/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/es_VE/LC_MESSAGES/django.po +698 -0
- django/contrib/admin/locale/es_VE/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/es_VE/LC_MESSAGES/djangojs.po +222 -0
- django/contrib/admin/locale/et/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/et/LC_MESSAGES/django.po +803 -0
- django/contrib/admin/locale/et/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/et/LC_MESSAGES/djangojs.po +351 -0
- django/contrib/admin/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/eu/LC_MESSAGES/django.po +732 -0
- django/contrib/admin/locale/eu/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/eu/LC_MESSAGES/djangojs.po +267 -0
- django/contrib/admin/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/fa/LC_MESSAGES/django.po +800 -0
- django/contrib/admin/locale/fa/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/fa/LC_MESSAGES/djangojs.po +271 -0
- django/contrib/admin/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/fi/LC_MESSAGES/django.po +788 -0
- django/contrib/admin/locale/fi/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/fi/LC_MESSAGES/djangojs.po +314 -0
- django/contrib/admin/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/fr/LC_MESSAGES/django.po +839 -0
- django/contrib/admin/locale/fr/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/fr/LC_MESSAGES/djangojs.po +375 -0
- django/contrib/admin/locale/fy/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/fy/LC_MESSAGES/django.po +609 -0
- django/contrib/admin/locale/fy/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/fy/LC_MESSAGES/djangojs.po +145 -0
- django/contrib/admin/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ga/LC_MESSAGES/django.po +810 -0
- django/contrib/admin/locale/ga/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ga/LC_MESSAGES/djangojs.po +341 -0
- django/contrib/admin/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/gd/LC_MESSAGES/django.po +754 -0
- django/contrib/admin/locale/gd/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/gd/LC_MESSAGES/djangojs.po +286 -0
- django/contrib/admin/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/gl/LC_MESSAGES/django.po +806 -0
- django/contrib/admin/locale/gl/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/gl/LC_MESSAGES/djangojs.po +353 -0
- django/contrib/admin/locale/he/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/he/LC_MESSAGES/django.po +800 -0
- django/contrib/admin/locale/he/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/he/LC_MESSAGES/djangojs.po +356 -0
- django/contrib/admin/locale/hi/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/hi/LC_MESSAGES/django.po +706 -0
- django/contrib/admin/locale/hi/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/hi/LC_MESSAGES/djangojs.po +217 -0
- django/contrib/admin/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/hr/LC_MESSAGES/django.po +809 -0
- django/contrib/admin/locale/hr/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/hr/LC_MESSAGES/djangojs.po +320 -0
- django/contrib/admin/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/hsb/LC_MESSAGES/django.po +795 -0
- django/contrib/admin/locale/hsb/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/hsb/LC_MESSAGES/djangojs.po +326 -0
- django/contrib/admin/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/hu/LC_MESSAGES/django.po +800 -0
- django/contrib/admin/locale/hu/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/hu/LC_MESSAGES/djangojs.po +329 -0
- django/contrib/admin/locale/hy/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/hy/LC_MESSAGES/django.po +765 -0
- django/contrib/admin/locale/hy/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/hy/LC_MESSAGES/djangojs.po +219 -0
- django/contrib/admin/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ia/LC_MESSAGES/django.po +664 -0
- django/contrib/admin/locale/ia/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ia/LC_MESSAGES/djangojs.po +216 -0
- django/contrib/admin/locale/id/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/id/LC_MESSAGES/django.po +800 -0
- django/contrib/admin/locale/id/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/id/LC_MESSAGES/djangojs.po +353 -0
- django/contrib/admin/locale/io/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/io/LC_MESSAGES/django.po +668 -0
- django/contrib/admin/locale/io/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/io/LC_MESSAGES/djangojs.po +145 -0
- django/contrib/admin/locale/is/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/is/LC_MESSAGES/django.po +720 -0
- django/contrib/admin/locale/is/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/is/LC_MESSAGES/djangojs.po +267 -0
- django/contrib/admin/locale/it/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/it/LC_MESSAGES/django.po +798 -0
- django/contrib/admin/locale/it/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/it/LC_MESSAGES/djangojs.po +322 -0
- django/contrib/admin/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ja/LC_MESSAGES/django.po +811 -0
- django/contrib/admin/locale/ja/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ja/LC_MESSAGES/djangojs.po +349 -0
- django/contrib/admin/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ka/LC_MESSAGES/django.po +782 -0
- django/contrib/admin/locale/ka/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ka/LC_MESSAGES/djangojs.po +347 -0
- django/contrib/admin/locale/kab/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/kab/LC_MESSAGES/django.po +631 -0
- django/contrib/admin/locale/kab/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/kab/LC_MESSAGES/djangojs.po +204 -0
- django/contrib/admin/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/kk/LC_MESSAGES/django.po +695 -0
- django/contrib/admin/locale/kk/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/kk/LC_MESSAGES/djangojs.po +210 -0
- django/contrib/admin/locale/km/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/km/LC_MESSAGES/django.po +636 -0
- django/contrib/admin/locale/km/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/km/LC_MESSAGES/djangojs.po +201 -0
- django/contrib/admin/locale/kn/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/kn/LC_MESSAGES/django.po +639 -0
- django/contrib/admin/locale/kn/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/kn/LC_MESSAGES/djangojs.po +261 -0
- django/contrib/admin/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ko/LC_MESSAGES/django.po +840 -0
- django/contrib/admin/locale/ko/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ko/LC_MESSAGES/djangojs.po +360 -0
- django/contrib/admin/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ky/LC_MESSAGES/django.po +711 -0
- django/contrib/admin/locale/ky/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ky/LC_MESSAGES/djangojs.po +260 -0
- django/contrib/admin/locale/lb/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/lb/LC_MESSAGES/django.po +632 -0
- django/contrib/admin/locale/lb/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/lb/LC_MESSAGES/djangojs.po +145 -0
- django/contrib/admin/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/lt/LC_MESSAGES/django.po +829 -0
- django/contrib/admin/locale/lt/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/lt/LC_MESSAGES/djangojs.po +383 -0
- django/contrib/admin/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/lv/LC_MESSAGES/django.po +821 -0
- django/contrib/admin/locale/lv/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/lv/LC_MESSAGES/djangojs.po +372 -0
- django/contrib/admin/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/mk/LC_MESSAGES/django.po +726 -0
- django/contrib/admin/locale/mk/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/mk/LC_MESSAGES/djangojs.po +262 -0
- django/contrib/admin/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ml/LC_MESSAGES/django.po +700 -0
- django/contrib/admin/locale/ml/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ml/LC_MESSAGES/djangojs.po +214 -0
- django/contrib/admin/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/mn/LC_MESSAGES/django.po +787 -0
- django/contrib/admin/locale/mn/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/mn/LC_MESSAGES/djangojs.po +218 -0
- django/contrib/admin/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/mr/LC_MESSAGES/django.po +768 -0
- django/contrib/admin/locale/mr/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/mr/LC_MESSAGES/djangojs.po +145 -0
- django/contrib/admin/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ms/LC_MESSAGES/django.po +721 -0
- django/contrib/admin/locale/ms/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ms/LC_MESSAGES/djangojs.po +264 -0
- django/contrib/admin/locale/my/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/my/LC_MESSAGES/django.po +629 -0
- django/contrib/admin/locale/my/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/my/LC_MESSAGES/djangojs.po +206 -0
- django/contrib/admin/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/nb/LC_MESSAGES/django.po +720 -0
- django/contrib/admin/locale/nb/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/nb/LC_MESSAGES/djangojs.po +269 -0
- django/contrib/admin/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ne/LC_MESSAGES/django.po +688 -0
- django/contrib/admin/locale/ne/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ne/LC_MESSAGES/djangojs.po +213 -0
- django/contrib/admin/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/nl/LC_MESSAGES/django.po +820 -0
- django/contrib/admin/locale/nl/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/nl/LC_MESSAGES/djangojs.po +361 -0
- django/contrib/admin/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/nn/LC_MESSAGES/django.po +736 -0
- django/contrib/admin/locale/nn/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/nn/LC_MESSAGES/djangojs.po +266 -0
- django/contrib/admin/locale/os/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/os/LC_MESSAGES/django.po +665 -0
- django/contrib/admin/locale/os/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/os/LC_MESSAGES/djangojs.po +217 -0
- django/contrib/admin/locale/pa/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/pa/LC_MESSAGES/django.po +706 -0
- django/contrib/admin/locale/pa/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/pa/LC_MESSAGES/djangojs.po +253 -0
- django/contrib/admin/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/pl/LC_MESSAGES/django.po +846 -0
- django/contrib/admin/locale/pl/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/pl/LC_MESSAGES/djangojs.po +383 -0
- django/contrib/admin/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/pt/LC_MESSAGES/django.po +817 -0
- django/contrib/admin/locale/pt/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/pt/LC_MESSAGES/djangojs.po +319 -0
- django/contrib/admin/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/pt_BR/LC_MESSAGES/django.po +833 -0
- django/contrib/admin/locale/pt_BR/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/pt_BR/LC_MESSAGES/djangojs.po +368 -0
- django/contrib/admin/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ro/LC_MESSAGES/django.po +758 -0
- django/contrib/admin/locale/ro/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ro/LC_MESSAGES/djangojs.po +228 -0
- django/contrib/admin/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ru/LC_MESSAGES/django.po +839 -0
- django/contrib/admin/locale/ru/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ru/LC_MESSAGES/djangojs.po +392 -0
- django/contrib/admin/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/sk/LC_MESSAGES/django.po +825 -0
- django/contrib/admin/locale/sk/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/sk/LC_MESSAGES/djangojs.po +322 -0
- django/contrib/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/sl/LC_MESSAGES/django.po +774 -0
- django/contrib/admin/locale/sl/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/sl/LC_MESSAGES/djangojs.po +328 -0
- django/contrib/admin/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/sq/LC_MESSAGES/django.po +803 -0
- django/contrib/admin/locale/sq/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/sq/LC_MESSAGES/djangojs.po +356 -0
- django/contrib/admin/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/sr/LC_MESSAGES/django.po +821 -0
- django/contrib/admin/locale/sr/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/sr/LC_MESSAGES/djangojs.po +372 -0
- django/contrib/admin/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/sr_Latn/LC_MESSAGES/django.po +821 -0
- django/contrib/admin/locale/sr_Latn/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/sr_Latn/LC_MESSAGES/djangojs.po +371 -0
- django/contrib/admin/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/sv/LC_MESSAGES/django.po +832 -0
- django/contrib/admin/locale/sv/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/sv/LC_MESSAGES/djangojs.po +370 -0
- django/contrib/admin/locale/sw/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/sw/LC_MESSAGES/django.po +779 -0
- django/contrib/admin/locale/sw/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/sw/LC_MESSAGES/djangojs.po +217 -0
- django/contrib/admin/locale/ta/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ta/LC_MESSAGES/django.po +643 -0
- django/contrib/admin/locale/ta/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ta/LC_MESSAGES/djangojs.po +204 -0
- django/contrib/admin/locale/te/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/te/LC_MESSAGES/django.po +640 -0
- django/contrib/admin/locale/te/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/te/LC_MESSAGES/djangojs.po +205 -0
- django/contrib/admin/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/tg/LC_MESSAGES/django.po +699 -0
- django/contrib/admin/locale/tg/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/tg/LC_MESSAGES/djangojs.po +222 -0
- django/contrib/admin/locale/th/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/th/LC_MESSAGES/django.po +671 -0
- django/contrib/admin/locale/th/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/th/LC_MESSAGES/djangojs.po +213 -0
- django/contrib/admin/locale/tk/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/tk/LC_MESSAGES/django.po +738 -0
- django/contrib/admin/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/tr/LC_MESSAGES/django.po +823 -0
- django/contrib/admin/locale/tr/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/tr/LC_MESSAGES/djangojs.po +362 -0
- django/contrib/admin/locale/tt/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/tt/LC_MESSAGES/django.po +655 -0
- django/contrib/admin/locale/tt/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/tt/LC_MESSAGES/djangojs.po +208 -0
- django/contrib/admin/locale/udm/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/udm/LC_MESSAGES/django.po +606 -0
- django/contrib/admin/locale/udm/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/udm/LC_MESSAGES/djangojs.po +142 -0
- django/contrib/admin/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ug/LC_MESSAGES/django.po +819 -0
- django/contrib/admin/locale/ug/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ug/LC_MESSAGES/djangojs.po +357 -0
- django/contrib/admin/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/uk/LC_MESSAGES/django.po +810 -0
- django/contrib/admin/locale/uk/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/uk/LC_MESSAGES/djangojs.po +323 -0
- django/contrib/admin/locale/ur/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/ur/LC_MESSAGES/django.po +794 -0
- django/contrib/admin/locale/ur/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/ur/LC_MESSAGES/djangojs.po +211 -0
- django/contrib/admin/locale/uz/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/uz/LC_MESSAGES/django.po +724 -0
- django/contrib/admin/locale/uz/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/uz/LC_MESSAGES/djangojs.po +261 -0
- django/contrib/admin/locale/vi/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/vi/LC_MESSAGES/django.po +726 -0
- django/contrib/admin/locale/vi/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/vi/LC_MESSAGES/djangojs.po +268 -0
- django/contrib/admin/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/zh_Hans/LC_MESSAGES/django.po +794 -0
- django/contrib/admin/locale/zh_Hans/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/zh_Hans/LC_MESSAGES/djangojs.po +320 -0
- django/contrib/admin/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/contrib/admin/locale/zh_Hant/LC_MESSAGES/django.po +787 -0
- django/contrib/admin/locale/zh_Hant/LC_MESSAGES/djangojs.mo +0 -0
- django/contrib/admin/locale/zh_Hant/LC_MESSAGES/djangojs.po +309 -0
- django/contrib/admin/migrations/0001_initial.py +75 -0
- django/contrib/admin/migrations/0002_logentry_remove_auto_add.py +21 -0
- django/contrib/admin/migrations/0003_logentry_add_action_flag_choices.py +19 -0
- django/contrib/admin/migrations/__init__.py +0 -0
- django/contrib/admin/models.py +199 -0
- django/contrib/admin/options.py +2947 -0
- django/contrib/admin/sites.py +635 -0
- django/contrib/admin/static/admin/css/autocomplete.css +381 -0
- django/contrib/admin/static/admin/css/base.css +1396 -0
- django/contrib/admin/static/admin/css/changelists.css +318 -0
- django/contrib/admin/static/admin/css/dark_mode.css +151 -0
- django/contrib/admin/static/admin/css/dashboard.css +30 -0
- django/contrib/admin/static/admin/css/forms.css +482 -0
- django/contrib/admin/static/admin/css/login.css +62 -0
- django/contrib/admin/static/admin/css/nav_sidebar.css +151 -0
- django/contrib/admin/static/admin/css/responsive.css +851 -0
- django/contrib/admin/static/admin/css/responsive_rtl.css +82 -0
- django/contrib/admin/static/admin/css/rtl.css +245 -0
- django/contrib/admin/static/admin/css/unusable_password_field.css +21 -0
- django/contrib/admin/static/admin/css/vendor/select2/LICENSE-SELECT2.md +21 -0
- django/contrib/admin/static/admin/css/vendor/select2/select2.css +481 -0
- django/contrib/admin/static/admin/css/vendor/select2/select2.min.css +1 -0
- django/contrib/admin/static/admin/css/widgets.css +647 -0
- django/contrib/admin/static/admin/img/README.md +80 -0
- django/contrib/admin/static/admin/img/calendar-icons.svg +44 -0
- django/contrib/admin/static/admin/img/icon-addlink.svg +9 -0
- django/contrib/admin/static/admin/img/icon-alert-dark.svg +9 -0
- django/contrib/admin/static/admin/img/icon-alert.svg +9 -0
- django/contrib/admin/static/admin/img/icon-calendar.svg +15 -0
- django/contrib/admin/static/admin/img/icon-changelink.svg +9 -0
- django/contrib/admin/static/admin/img/icon-clock.svg +15 -0
- django/contrib/admin/static/admin/img/icon-debug-dark.svg +9 -0
- django/contrib/admin/static/admin/img/icon-debug.svg +9 -0
- django/contrib/admin/static/admin/img/icon-deletelink.svg +11 -0
- django/contrib/admin/static/admin/img/icon-hidelink.svg +9 -0
- django/contrib/admin/static/admin/img/icon-info-dark.svg +9 -0
- django/contrib/admin/static/admin/img/icon-info.svg +9 -0
- django/contrib/admin/static/admin/img/icon-no-dark.svg +9 -0
- django/contrib/admin/static/admin/img/icon-no.svg +9 -0
- django/contrib/admin/static/admin/img/icon-unknown-alt.svg +9 -0
- django/contrib/admin/static/admin/img/icon-unknown.svg +9 -0
- django/contrib/admin/static/admin/img/icon-viewlink.svg +9 -0
- django/contrib/admin/static/admin/img/icon-yes-dark.svg +9 -0
- django/contrib/admin/static/admin/img/icon-yes.svg +9 -0
- django/contrib/admin/static/admin/img/inline-delete.svg +9 -0
- django/contrib/admin/static/admin/img/search.svg +9 -0
- django/contrib/admin/static/admin/img/selector-icons-dark.svg +45 -0
- django/contrib/admin/static/admin/img/selector-icons.svg +45 -0
- django/contrib/admin/static/admin/img/sorting-icons.svg +35 -0
- django/contrib/admin/static/admin/img/tooltag-add.svg +9 -0
- django/contrib/admin/static/admin/img/tooltag-arrowright.svg +9 -0
- django/contrib/admin/static/admin/js/SelectBox.js +177 -0
- django/contrib/admin/static/admin/js/SelectFilter2.js +523 -0
- django/contrib/admin/static/admin/js/actions.js +246 -0
- django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js +682 -0
- django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js +332 -0
- django/contrib/admin/static/admin/js/autocomplete.js +33 -0
- django/contrib/admin/static/admin/js/calendar.js +338 -0
- django/contrib/admin/static/admin/js/cancel.js +29 -0
- django/contrib/admin/static/admin/js/change_form.js +21 -0
- django/contrib/admin/static/admin/js/core.js +194 -0
- django/contrib/admin/static/admin/js/filters.js +39 -0
- django/contrib/admin/static/admin/js/inlines.js +451 -0
- django/contrib/admin/static/admin/js/jquery.init.js +8 -0
- django/contrib/admin/static/admin/js/nav_sidebar.js +89 -0
- django/contrib/admin/static/admin/js/popup_response.js +28 -0
- django/contrib/admin/static/admin/js/prepopulate.js +45 -0
- django/contrib/admin/static/admin/js/prepopulate_init.js +24 -0
- django/contrib/admin/static/admin/js/theme.js +55 -0
- django/contrib/admin/static/admin/js/urlify.js +532 -0
- django/contrib/admin/static/admin/js/vendor/jquery/LICENSE.txt +20 -0
- django/contrib/admin/static/admin/js/vendor/jquery/jquery.js +10716 -0
- django/contrib/admin/static/admin/js/vendor/jquery/jquery.min.js +2 -0
- django/contrib/admin/static/admin/js/vendor/select2/LICENSE.md +21 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/af.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/ar.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/az.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/bg.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/bn.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/bs.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/ca.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/cs.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/da.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/de.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/dsb.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/el.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/en.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/es.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/et.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/eu.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/fa.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/fi.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/fr.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/gl.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/he.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/hi.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/hr.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/hsb.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/hu.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/hy.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/id.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/is.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/it.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/ja.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/ka.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/km.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/ko.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/lt.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/lv.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/mk.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/ms.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/nb.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/ne.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/nl.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/pl.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/ps.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/pt-BR.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/pt.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/ro.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/ru.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/sk.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/sl.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/sq.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/sr-Cyrl.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/sr.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/sv.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/th.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/tk.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/tr.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/uk.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/vi.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/zh-CN.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/i18n/zh-TW.js +3 -0
- django/contrib/admin/static/admin/js/vendor/select2/select2.full.js +6820 -0
- django/contrib/admin/static/admin/js/vendor/select2/select2.full.min.js +2 -0
- django/contrib/admin/static/admin/js/vendor/xregexp/LICENSE.txt +21 -0
- django/contrib/admin/static/admin/js/vendor/xregexp/xregexp.js +6126 -0
- django/contrib/admin/static/admin/js/vendor/xregexp/xregexp.min.js +17 -0
- django/contrib/admin/templates/admin/404.html +12 -0
- django/contrib/admin/templates/admin/500.html +17 -0
- django/contrib/admin/templates/admin/actions.html +23 -0
- django/contrib/admin/templates/admin/app_index.html +20 -0
- django/contrib/admin/templates/admin/app_list.html +51 -0
- django/contrib/admin/templates/admin/auth/user/add_form.html +12 -0
- django/contrib/admin/templates/admin/auth/user/change_password.html +89 -0
- django/contrib/admin/templates/admin/base.html +132 -0
- django/contrib/admin/templates/admin/base_site.html +12 -0
- django/contrib/admin/templates/admin/change_form.html +93 -0
- django/contrib/admin/templates/admin/change_form_actions.html +1 -0
- django/contrib/admin/templates/admin/change_form_object_tools.html +8 -0
- django/contrib/admin/templates/admin/change_list.html +103 -0
- django/contrib/admin/templates/admin/change_list_object_tools.html +12 -0
- django/contrib/admin/templates/admin/change_list_results.html +36 -0
- django/contrib/admin/templates/admin/color_theme_toggle.html +15 -0
- django/contrib/admin/templates/admin/date_hierarchy.html +16 -0
- django/contrib/admin/templates/admin/delete_confirmation.html +56 -0
- django/contrib/admin/templates/admin/delete_selected_confirmation.html +53 -0
- django/contrib/admin/templates/admin/edit_inline/stacked.html +38 -0
- django/contrib/admin/templates/admin/edit_inline/tabular.html +75 -0
- django/contrib/admin/templates/admin/filter.html +12 -0
- django/contrib/admin/templates/admin/includes/fieldset.html +43 -0
- django/contrib/admin/templates/admin/includes/object_delete_summary.html +7 -0
- django/contrib/admin/templates/admin/index.html +51 -0
- django/contrib/admin/templates/admin/invalid_setup.html +13 -0
- django/contrib/admin/templates/admin/login.html +69 -0
- django/contrib/admin/templates/admin/nav_sidebar.html +8 -0
- django/contrib/admin/templates/admin/object_history.html +59 -0
- django/contrib/admin/templates/admin/pagination.html +14 -0
- django/contrib/admin/templates/admin/popup_response.html +11 -0
- django/contrib/admin/templates/admin/prepopulated_fields_js.html +6 -0
- django/contrib/admin/templates/admin/search_form.html +22 -0
- django/contrib/admin/templates/admin/submit_line.html +17 -0
- django/contrib/admin/templates/admin/widgets/clearable_file_input.html +6 -0
- django/contrib/admin/templates/admin/widgets/date.html +3 -0
- django/contrib/admin/templates/admin/widgets/foreign_key_raw_id.html +2 -0
- django/contrib/admin/templates/admin/widgets/many_to_many_raw_id.html +1 -0
- django/contrib/admin/templates/admin/widgets/radio.html +1 -0
- django/contrib/admin/templates/admin/widgets/related_widget_wrapper.html +41 -0
- django/contrib/admin/templates/admin/widgets/split_datetime.html +4 -0
- django/contrib/admin/templates/admin/widgets/time.html +3 -0
- django/contrib/admin/templates/admin/widgets/url.html +1 -0
- django/contrib/admin/templates/registration/logged_out.html +19 -0
- django/contrib/admin/templates/registration/password_change_done.html +20 -0
- django/contrib/admin/templates/registration/password_change_form.html +79 -0
- django/contrib/admin/templates/registration/password_reset_complete.html +17 -0
- django/contrib/admin/templates/registration/password_reset_confirm.html +52 -0
- django/contrib/admin/templates/registration/password_reset_done.html +17 -0
- django/contrib/admin/templates/registration/password_reset_email.html +14 -0
- django/contrib/admin/templates/registration/password_reset_form.html +36 -0
- django/contrib/admin/templatetags/__init__.py +0 -0
- django/contrib/admin/templatetags/admin_filters.py +79 -0
- django/contrib/admin/templatetags/admin_list.py +562 -0
- django/contrib/admin/templatetags/admin_modify.py +163 -0
- django/contrib/admin/templatetags/admin_urls.py +70 -0
- django/contrib/admin/templatetags/base.py +53 -0
- django/contrib/admin/templatetags/log.py +67 -0
- django/contrib/admin/utils.py +643 -0
- django/contrib/admin/views/__init__.py +0 -0
- django/contrib/admin/views/autocomplete.py +123 -0
- django/contrib/admin/views/decorators.py +19 -0
- django/contrib/admin/views/main.py +570 -0
- django/contrib/admin/widgets.py +633 -0
- django/contrib/admindocs/__init__.py +0 -0
- django/contrib/admindocs/apps.py +7 -0
- django/contrib/admindocs/locale/af/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/af/LC_MESSAGES/django.po +271 -0
- django/contrib/admindocs/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ar/LC_MESSAGES/django.po +278 -0
- django/contrib/admindocs/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ar_DZ/LC_MESSAGES/django.po +277 -0
- django/contrib/admindocs/locale/ast/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ast/LC_MESSAGES/django.po +258 -0
- django/contrib/admindocs/locale/az/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/az/LC_MESSAGES/django.po +282 -0
- django/contrib/admindocs/locale/be/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/be/LC_MESSAGES/django.po +284 -0
- django/contrib/admindocs/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/bg/LC_MESSAGES/django.po +290 -0
- django/contrib/admindocs/locale/bn/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/bn/LC_MESSAGES/django.po +261 -0
- django/contrib/admindocs/locale/br/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/br/LC_MESSAGES/django.po +263 -0
- django/contrib/admindocs/locale/bs/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/bs/LC_MESSAGES/django.po +261 -0
- django/contrib/admindocs/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ca/LC_MESSAGES/django.po +288 -0
- django/contrib/admindocs/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ckb/LC_MESSAGES/django.po +286 -0
- django/contrib/admindocs/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/cs/LC_MESSAGES/django.po +284 -0
- django/contrib/admindocs/locale/cy/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/cy/LC_MESSAGES/django.po +279 -0
- django/contrib/admindocs/locale/da/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/da/LC_MESSAGES/django.po +285 -0
- django/contrib/admindocs/locale/de/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/de/LC_MESSAGES/django.po +287 -0
- django/contrib/admindocs/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/dsb/LC_MESSAGES/django.po +285 -0
- django/contrib/admindocs/locale/el/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/el/LC_MESSAGES/django.po +290 -0
- django/contrib/admindocs/locale/en/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/en/LC_MESSAGES/django.po +359 -0
- django/contrib/admindocs/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/en_AU/LC_MESSAGES/django.po +275 -0
- django/contrib/admindocs/locale/en_GB/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/en_GB/LC_MESSAGES/django.po +260 -0
- django/contrib/admindocs/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/eo/LC_MESSAGES/django.po +279 -0
- django/contrib/admindocs/locale/es/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/es/LC_MESSAGES/django.po +293 -0
- django/contrib/admindocs/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/es_AR/LC_MESSAGES/django.po +286 -0
- django/contrib/admindocs/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/es_CO/LC_MESSAGES/django.po +281 -0
- django/contrib/admindocs/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/es_MX/LC_MESSAGES/django.po +260 -0
- django/contrib/admindocs/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/es_VE/LC_MESSAGES/django.po +286 -0
- django/contrib/admindocs/locale/et/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/et/LC_MESSAGES/django.po +286 -0
- django/contrib/admindocs/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/eu/LC_MESSAGES/django.po +283 -0
- django/contrib/admindocs/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/fa/LC_MESSAGES/django.po +285 -0
- django/contrib/admindocs/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/fi/LC_MESSAGES/django.po +278 -0
- django/contrib/admindocs/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/fr/LC_MESSAGES/django.po +285 -0
- django/contrib/admindocs/locale/fy/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/fy/LC_MESSAGES/django.po +275 -0
- django/contrib/admindocs/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ga/LC_MESSAGES/django.po +286 -0
- django/contrib/admindocs/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/gd/LC_MESSAGES/django.po +289 -0
- django/contrib/admindocs/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/gl/LC_MESSAGES/django.po +285 -0
- django/contrib/admindocs/locale/he/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/he/LC_MESSAGES/django.po +276 -0
- django/contrib/admindocs/locale/hi/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/hi/LC_MESSAGES/django.po +258 -0
- django/contrib/admindocs/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/hr/LC_MESSAGES/django.po +287 -0
- django/contrib/admindocs/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/hsb/LC_MESSAGES/django.po +286 -0
- django/contrib/admindocs/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/hu/LC_MESSAGES/django.po +288 -0
- django/contrib/admindocs/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ia/LC_MESSAGES/django.po +260 -0
- django/contrib/admindocs/locale/id/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/id/LC_MESSAGES/django.po +287 -0
- django/contrib/admindocs/locale/io/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/io/LC_MESSAGES/django.po +275 -0
- django/contrib/admindocs/locale/is/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/is/LC_MESSAGES/django.po +261 -0
- django/contrib/admindocs/locale/it/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/it/LC_MESSAGES/django.po +289 -0
- django/contrib/admindocs/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ja/LC_MESSAGES/django.po +284 -0
- django/contrib/admindocs/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ka/LC_MESSAGES/django.po +263 -0
- django/contrib/admindocs/locale/kab/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/kab/LC_MESSAGES/django.po +258 -0
- django/contrib/admindocs/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/kk/LC_MESSAGES/django.po +258 -0
- django/contrib/admindocs/locale/km/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/km/LC_MESSAGES/django.po +259 -0
- django/contrib/admindocs/locale/kn/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/kn/LC_MESSAGES/django.po +259 -0
- django/contrib/admindocs/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ko/LC_MESSAGES/django.po +280 -0
- django/contrib/admindocs/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ky/LC_MESSAGES/django.po +281 -0
- django/contrib/admindocs/locale/lb/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/lb/LC_MESSAGES/django.po +275 -0
- django/contrib/admindocs/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/lt/LC_MESSAGES/django.po +291 -0
- django/contrib/admindocs/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/lv/LC_MESSAGES/django.po +284 -0
- django/contrib/admindocs/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/mk/LC_MESSAGES/django.po +286 -0
- django/contrib/admindocs/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ml/LC_MESSAGES/django.po +268 -0
- django/contrib/admindocs/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/mn/LC_MESSAGES/django.po +283 -0
- django/contrib/admindocs/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/mr/LC_MESSAGES/django.po +275 -0
- django/contrib/admindocs/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ms/LC_MESSAGES/django.po +283 -0
- django/contrib/admindocs/locale/my/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/my/LC_MESSAGES/django.po +258 -0
- django/contrib/admindocs/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/nb/LC_MESSAGES/django.po +284 -0
- django/contrib/admindocs/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ne/LC_MESSAGES/django.po +261 -0
- django/contrib/admindocs/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/nl/LC_MESSAGES/django.po +286 -0
- django/contrib/admindocs/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/nn/LC_MESSAGES/django.po +282 -0
- django/contrib/admindocs/locale/os/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/os/LC_MESSAGES/django.po +258 -0
- django/contrib/admindocs/locale/pa/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/pa/LC_MESSAGES/django.po +258 -0
- django/contrib/admindocs/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/pl/LC_MESSAGES/django.po +294 -0
- django/contrib/admindocs/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/pt/LC_MESSAGES/django.po +288 -0
- django/contrib/admindocs/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/pt_BR/LC_MESSAGES/django.po +292 -0
- django/contrib/admindocs/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ro/LC_MESSAGES/django.po +288 -0
- django/contrib/admindocs/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ru/LC_MESSAGES/django.po +292 -0
- django/contrib/admindocs/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/sk/LC_MESSAGES/django.po +286 -0
- django/contrib/admindocs/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/sl/LC_MESSAGES/django.po +285 -0
- django/contrib/admindocs/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/sq/LC_MESSAGES/django.po +283 -0
- django/contrib/admindocs/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/sr/LC_MESSAGES/django.po +285 -0
- django/contrib/admindocs/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/sr_Latn/LC_MESSAGES/django.po +363 -0
- django/contrib/admindocs/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/sv/LC_MESSAGES/django.po +288 -0
- django/contrib/admindocs/locale/sw/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/sw/LC_MESSAGES/django.po +259 -0
- django/contrib/admindocs/locale/ta/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ta/LC_MESSAGES/django.po +258 -0
- django/contrib/admindocs/locale/te/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/te/LC_MESSAGES/django.po +258 -0
- django/contrib/admindocs/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/tg/LC_MESSAGES/django.po +281 -0
- django/contrib/admindocs/locale/th/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/th/LC_MESSAGES/django.po +258 -0
- django/contrib/admindocs/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/tr/LC_MESSAGES/django.po +287 -0
- django/contrib/admindocs/locale/tt/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/tt/LC_MESSAGES/django.po +259 -0
- django/contrib/admindocs/locale/udm/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/udm/LC_MESSAGES/django.po +275 -0
- django/contrib/admindocs/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ug/LC_MESSAGES/django.po +280 -0
- django/contrib/admindocs/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/uk/LC_MESSAGES/django.po +294 -0
- django/contrib/admindocs/locale/ur/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/ur/LC_MESSAGES/django.po +259 -0
- django/contrib/admindocs/locale/vi/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/vi/LC_MESSAGES/django.po +259 -0
- django/contrib/admindocs/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/zh_Hans/LC_MESSAGES/django.po +276 -0
- django/contrib/admindocs/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/contrib/admindocs/locale/zh_Hant/LC_MESSAGES/django.po +274 -0
- django/contrib/admindocs/middleware.py +54 -0
- django/contrib/admindocs/templates/admin_doc/bookmarklets.html +26 -0
- django/contrib/admindocs/templates/admin_doc/index.html +34 -0
- django/contrib/admindocs/templates/admin_doc/missing_docutils.html +22 -0
- django/contrib/admindocs/templates/admin_doc/model_detail.html +78 -0
- django/contrib/admindocs/templates/admin_doc/model_index.html +52 -0
- django/contrib/admindocs/templates/admin_doc/template_detail.html +27 -0
- django/contrib/admindocs/templates/admin_doc/template_filter_index.html +54 -0
- django/contrib/admindocs/templates/admin_doc/template_tag_index.html +54 -0
- django/contrib/admindocs/templates/admin_doc/view_detail.html +33 -0
- django/contrib/admindocs/templates/admin_doc/view_index.html +59 -0
- django/contrib/admindocs/urls.py +50 -0
- django/contrib/admindocs/utils.py +182 -0
- django/contrib/admindocs/views.py +480 -0
- django/contrib/auth/__init__.py +408 -0
- django/contrib/auth/admin.py +251 -0
- django/contrib/auth/apps.py +35 -0
- django/contrib/auth/backends.py +350 -0
- django/contrib/auth/base_user.py +164 -0
- django/contrib/auth/checks.py +261 -0
- django/contrib/auth/common-passwords.txt.gz +0 -0
- django/contrib/auth/context_processors.py +67 -0
- django/contrib/auth/decorators.py +138 -0
- django/contrib/auth/forms.py +599 -0
- django/contrib/auth/handlers/__init__.py +0 -0
- django/contrib/auth/handlers/modwsgi.py +58 -0
- django/contrib/auth/hashers.py +695 -0
- django/contrib/auth/locale/af/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/af/LC_MESSAGES/django.po +338 -0
- django/contrib/auth/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ar/LC_MESSAGES/django.po +346 -0
- django/contrib/auth/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ar_DZ/LC_MESSAGES/django.po +320 -0
- django/contrib/auth/locale/ast/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ast/LC_MESSAGES/django.po +284 -0
- django/contrib/auth/locale/az/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/az/LC_MESSAGES/django.po +338 -0
- django/contrib/auth/locale/be/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/be/LC_MESSAGES/django.po +342 -0
- django/contrib/auth/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/bg/LC_MESSAGES/django.po +343 -0
- django/contrib/auth/locale/bn/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/bn/LC_MESSAGES/django.po +286 -0
- django/contrib/auth/locale/br/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/br/LC_MESSAGES/django.po +293 -0
- django/contrib/auth/locale/bs/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/bs/LC_MESSAGES/django.po +296 -0
- django/contrib/auth/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ca/LC_MESSAGES/django.po +348 -0
- django/contrib/auth/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ckb/LC_MESSAGES/django.po +336 -0
- django/contrib/auth/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/cs/LC_MESSAGES/django.po +342 -0
- django/contrib/auth/locale/cy/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/cy/LC_MESSAGES/django.po +294 -0
- django/contrib/auth/locale/da/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/da/LC_MESSAGES/django.po +339 -0
- django/contrib/auth/locale/de/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/de/LC_MESSAGES/django.po +342 -0
- django/contrib/auth/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/dsb/LC_MESSAGES/django.po +348 -0
- django/contrib/auth/locale/el/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/el/LC_MESSAGES/django.po +320 -0
- django/contrib/auth/locale/en/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/en/LC_MESSAGES/django.po +406 -0
- django/contrib/auth/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/en_AU/LC_MESSAGES/django.po +306 -0
- django/contrib/auth/locale/en_GB/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/en_GB/LC_MESSAGES/django.po +289 -0
- django/contrib/auth/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/eo/LC_MESSAGES/django.po +310 -0
- django/contrib/auth/locale/es/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/es/LC_MESSAGES/django.po +359 -0
- django/contrib/auth/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/es_AR/LC_MESSAGES/django.po +348 -0
- django/contrib/auth/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/es_CO/LC_MESSAGES/django.po +304 -0
- django/contrib/auth/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/es_MX/LC_MESSAGES/django.po +312 -0
- django/contrib/auth/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/es_VE/LC_MESSAGES/django.po +304 -0
- django/contrib/auth/locale/et/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/et/LC_MESSAGES/django.po +337 -0
- django/contrib/auth/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/eu/LC_MESSAGES/django.po +311 -0
- django/contrib/auth/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/fa/LC_MESSAGES/django.po +313 -0
- django/contrib/auth/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/fi/LC_MESSAGES/django.po +337 -0
- django/contrib/auth/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/fr/LC_MESSAGES/django.po +356 -0
- django/contrib/auth/locale/fy/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/fy/LC_MESSAGES/django.po +226 -0
- django/contrib/auth/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ga/LC_MESSAGES/django.po +371 -0
- django/contrib/auth/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/gd/LC_MESSAGES/django.po +337 -0
- django/contrib/auth/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/gl/LC_MESSAGES/django.po +344 -0
- django/contrib/auth/locale/he/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/he/LC_MESSAGES/django.po +335 -0
- django/contrib/auth/locale/hi/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/hi/LC_MESSAGES/django.po +290 -0
- django/contrib/auth/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/hr/LC_MESSAGES/django.po +347 -0
- django/contrib/auth/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/hsb/LC_MESSAGES/django.po +341 -0
- django/contrib/auth/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/hu/LC_MESSAGES/django.po +336 -0
- django/contrib/auth/locale/hy/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/hy/LC_MESSAGES/django.po +295 -0
- django/contrib/auth/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ia/LC_MESSAGES/django.po +310 -0
- django/contrib/auth/locale/id/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/id/LC_MESSAGES/django.po +337 -0
- django/contrib/auth/locale/io/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/io/LC_MESSAGES/django.po +226 -0
- django/contrib/auth/locale/is/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/is/LC_MESSAGES/django.po +307 -0
- django/contrib/auth/locale/it/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/it/LC_MESSAGES/django.po +322 -0
- django/contrib/auth/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ja/LC_MESSAGES/django.po +332 -0
- django/contrib/auth/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ka/LC_MESSAGES/django.po +302 -0
- django/contrib/auth/locale/kab/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/kab/LC_MESSAGES/django.po +287 -0
- django/contrib/auth/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/kk/LC_MESSAGES/django.po +285 -0
- django/contrib/auth/locale/km/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/km/LC_MESSAGES/django.po +281 -0
- django/contrib/auth/locale/kn/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/kn/LC_MESSAGES/django.po +285 -0
- django/contrib/auth/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ko/LC_MESSAGES/django.po +352 -0
- django/contrib/auth/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ky/LC_MESSAGES/django.po +299 -0
- django/contrib/auth/locale/lb/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/lb/LC_MESSAGES/django.po +226 -0
- django/contrib/auth/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/lt/LC_MESSAGES/django.po +349 -0
- django/contrib/auth/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/lv/LC_MESSAGES/django.po +346 -0
- django/contrib/auth/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/mk/LC_MESSAGES/django.po +308 -0
- django/contrib/auth/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ml/LC_MESSAGES/django.po +303 -0
- django/contrib/auth/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/mn/LC_MESSAGES/django.po +310 -0
- django/contrib/auth/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/mr/LC_MESSAGES/django.po +299 -0
- django/contrib/auth/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ms/LC_MESSAGES/django.po +313 -0
- django/contrib/auth/locale/my/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/my/LC_MESSAGES/django.po +282 -0
- django/contrib/auth/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/nb/LC_MESSAGES/django.po +302 -0
- django/contrib/auth/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ne/LC_MESSAGES/django.po +286 -0
- django/contrib/auth/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/nl/LC_MESSAGES/django.po +353 -0
- django/contrib/auth/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/nn/LC_MESSAGES/django.po +301 -0
- django/contrib/auth/locale/os/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/os/LC_MESSAGES/django.po +288 -0
- django/contrib/auth/locale/pa/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/pa/LC_MESSAGES/django.po +285 -0
- django/contrib/auth/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/pl/LC_MESSAGES/django.po +356 -0
- django/contrib/auth/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/pt/LC_MESSAGES/django.po +343 -0
- django/contrib/auth/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/pt_BR/LC_MESSAGES/django.po +363 -0
- django/contrib/auth/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ro/LC_MESSAGES/django.po +320 -0
- django/contrib/auth/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ru/LC_MESSAGES/django.po +356 -0
- django/contrib/auth/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/sk/LC_MESSAGES/django.po +342 -0
- django/contrib/auth/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/sl/LC_MESSAGES/django.po +312 -0
- django/contrib/auth/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/sq/LC_MESSAGES/django.po +342 -0
- django/contrib/auth/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/sr/LC_MESSAGES/django.po +340 -0
- django/contrib/auth/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/sr_Latn/LC_MESSAGES/django.po +413 -0
- django/contrib/auth/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/sv/LC_MESSAGES/django.po +356 -0
- django/contrib/auth/locale/sw/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/sw/LC_MESSAGES/django.po +287 -0
- django/contrib/auth/locale/ta/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ta/LC_MESSAGES/django.po +283 -0
- django/contrib/auth/locale/te/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/te/LC_MESSAGES/django.po +285 -0
- django/contrib/auth/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/tg/LC_MESSAGES/django.po +299 -0
- django/contrib/auth/locale/th/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/th/LC_MESSAGES/django.po +282 -0
- django/contrib/auth/locale/tk/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/tk/LC_MESSAGES/django.po +307 -0
- django/contrib/auth/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/tr/LC_MESSAGES/django.po +345 -0
- django/contrib/auth/locale/tt/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/tt/LC_MESSAGES/django.po +281 -0
- django/contrib/auth/locale/udm/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/udm/LC_MESSAGES/django.po +226 -0
- django/contrib/auth/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ug/LC_MESSAGES/django.po +341 -0
- django/contrib/auth/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/uk/LC_MESSAGES/django.po +355 -0
- django/contrib/auth/locale/ur/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/ur/LC_MESSAGES/django.po +282 -0
- django/contrib/auth/locale/uz/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/uz/LC_MESSAGES/django.po +287 -0
- django/contrib/auth/locale/vi/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/vi/LC_MESSAGES/django.po +305 -0
- django/contrib/auth/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/zh_Hans/LC_MESSAGES/django.po +335 -0
- django/contrib/auth/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/contrib/auth/locale/zh_Hant/LC_MESSAGES/django.po +325 -0
- django/contrib/auth/management/__init__.py +308 -0
- django/contrib/auth/management/commands/__init__.py +0 -0
- django/contrib/auth/management/commands/changepassword.py +82 -0
- django/contrib/auth/management/commands/createsuperuser.py +321 -0
- django/contrib/auth/middleware.py +339 -0
- django/contrib/auth/migrations/0001_initial.py +204 -0
- django/contrib/auth/migrations/0002_alter_permission_name_max_length.py +15 -0
- django/contrib/auth/migrations/0003_alter_user_email_max_length.py +17 -0
- django/contrib/auth/migrations/0004_alter_user_username_opts.py +27 -0
- django/contrib/auth/migrations/0005_alter_user_last_login_null.py +17 -0
- django/contrib/auth/migrations/0006_require_contenttypes_0002.py +13 -0
- django/contrib/auth/migrations/0007_alter_validators_add_error_messages.py +26 -0
- django/contrib/auth/migrations/0008_alter_user_username_max_length.py +26 -0
- django/contrib/auth/migrations/0009_alter_user_last_name_max_length.py +17 -0
- django/contrib/auth/migrations/0010_alter_group_name_max_length.py +15 -0
- django/contrib/auth/migrations/0011_update_proxy_permissions.py +76 -0
- django/contrib/auth/migrations/0012_alter_user_first_name_max_length.py +17 -0
- django/contrib/auth/migrations/__init__.py +0 -0
- django/contrib/auth/mixins.py +136 -0
- django/contrib/auth/models.py +639 -0
- django/contrib/auth/password_validation.py +287 -0
- django/contrib/auth/signals.py +5 -0
- django/contrib/auth/templates/auth/widgets/read_only_password_hash.html +5 -0
- django/contrib/auth/templates/registration/password_reset_subject.txt +3 -0
- django/contrib/auth/templatetags/__init__.py +0 -0
- django/contrib/auth/templatetags/auth.py +25 -0
- django/contrib/auth/tokens.py +132 -0
- django/contrib/auth/urls.py +36 -0
- django/contrib/auth/validators.py +25 -0
- django/contrib/auth/views.py +379 -0
- django/contrib/contenttypes/__init__.py +0 -0
- django/contrib/contenttypes/admin.py +158 -0
- django/contrib/contenttypes/apps.py +22 -0
- django/contrib/contenttypes/checks.py +46 -0
- django/contrib/contenttypes/fields.py +1011 -0
- django/contrib/contenttypes/forms.py +133 -0
- django/contrib/contenttypes/locale/af/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/af/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ar/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ar_DZ/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/ast/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ast/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/az/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/az/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/be/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/be/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/bg/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/bn/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/bn/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/br/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/br/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/bs/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/bs/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ca/LC_MESSAGES/django.po +44 -0
- django/contrib/contenttypes/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ckb/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/cs/LC_MESSAGES/django.po +44 -0
- django/contrib/contenttypes/locale/cy/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/cy/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/da/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/da/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/de/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/de/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/dsb/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/el/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/el/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/en/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/en/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/en_AU/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/en_GB/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/en_GB/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/eo/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/es/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/es/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/es_AR/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/es_CO/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/es_MX/LC_MESSAGES/django.po +44 -0
- django/contrib/contenttypes/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/es_VE/LC_MESSAGES/django.po +44 -0
- django/contrib/contenttypes/locale/et/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/et/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/eu/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/fa/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/fi/LC_MESSAGES/django.po +44 -0
- django/contrib/contenttypes/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/fr/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/fy/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/fy/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ga/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/gd/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/gl/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/he/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/he/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/hi/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/hi/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/hr/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/hsb/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/hu/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/hy/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/hy/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ia/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/id/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/id/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/io/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/io/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/is/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/is/LC_MESSAGES/django.po +44 -0
- django/contrib/contenttypes/locale/it/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/it/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ja/LC_MESSAGES/django.po +47 -0
- django/contrib/contenttypes/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ka/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/kk/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/km/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/km/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/kn/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/kn/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ko/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ky/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/lb/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/lb/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/lt/LC_MESSAGES/django.po +47 -0
- django/contrib/contenttypes/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/lv/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/mk/LC_MESSAGES/django.po +44 -0
- django/contrib/contenttypes/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ml/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/mn/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/mr/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ms/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/my/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/my/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/nb/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ne/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/nl/LC_MESSAGES/django.po +44 -0
- django/contrib/contenttypes/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/nn/LC_MESSAGES/django.po +44 -0
- django/contrib/contenttypes/locale/os/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/os/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/pa/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/pa/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/pl/LC_MESSAGES/django.po +47 -0
- django/contrib/contenttypes/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/pt/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/pt_BR/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ro/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ru/LC_MESSAGES/django.po +47 -0
- django/contrib/contenttypes/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/sk/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/sl/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/sq/LC_MESSAGES/django.po +43 -0
- django/contrib/contenttypes/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/sr/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/sr_Latn/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/sv/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/sw/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/sw/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/ta/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ta/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/te/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/te/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/tg/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/th/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/th/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/tk/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/tk/LC_MESSAGES/django.po +42 -0
- django/contrib/contenttypes/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/tr/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/tt/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/tt/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/udm/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/udm/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ug/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/uk/LC_MESSAGES/django.po +49 -0
- django/contrib/contenttypes/locale/ur/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/ur/LC_MESSAGES/django.po +41 -0
- django/contrib/contenttypes/locale/vi/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/vi/LC_MESSAGES/django.po +45 -0
- django/contrib/contenttypes/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/zh_Hans/LC_MESSAGES/django.po +46 -0
- django/contrib/contenttypes/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/contrib/contenttypes/locale/zh_Hant/LC_MESSAGES/django.po +44 -0
- django/contrib/contenttypes/management/__init__.py +143 -0
- django/contrib/contenttypes/management/commands/__init__.py +0 -0
- django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py +107 -0
- django/contrib/contenttypes/migrations/0001_initial.py +45 -0
- django/contrib/contenttypes/migrations/0002_remove_content_type_name.py +42 -0
- django/contrib/contenttypes/migrations/__init__.py +0 -0
- django/contrib/contenttypes/models.py +212 -0
- django/contrib/contenttypes/prefetch.py +36 -0
- django/contrib/contenttypes/views.py +88 -0
- django/contrib/flatpages/__init__.py +0 -0
- django/contrib/flatpages/admin.py +22 -0
- django/contrib/flatpages/apps.py +8 -0
- django/contrib/flatpages/forms.py +74 -0
- django/contrib/flatpages/locale/af/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/af/LC_MESSAGES/django.po +89 -0
- django/contrib/flatpages/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ar/LC_MESSAGES/django.po +91 -0
- django/contrib/flatpages/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ar_DZ/LC_MESSAGES/django.po +87 -0
- django/contrib/flatpages/locale/ast/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ast/LC_MESSAGES/django.po +80 -0
- django/contrib/flatpages/locale/az/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/az/LC_MESSAGES/django.po +94 -0
- django/contrib/flatpages/locale/be/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/be/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/bg/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/bn/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/bn/LC_MESSAGES/django.po +83 -0
- django/contrib/flatpages/locale/br/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/br/LC_MESSAGES/django.po +95 -0
- django/contrib/flatpages/locale/bs/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/bs/LC_MESSAGES/django.po +88 -0
- django/contrib/flatpages/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ca/LC_MESSAGES/django.po +93 -0
- django/contrib/flatpages/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ckb/LC_MESSAGES/django.po +88 -0
- django/contrib/flatpages/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/cs/LC_MESSAGES/django.po +89 -0
- django/contrib/flatpages/locale/cy/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/cy/LC_MESSAGES/django.po +88 -0
- django/contrib/flatpages/locale/da/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/da/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/de/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/de/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/dsb/LC_MESSAGES/django.po +90 -0
- django/contrib/flatpages/locale/el/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/el/LC_MESSAGES/django.po +93 -0
- django/contrib/flatpages/locale/en/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/en/LC_MESSAGES/django.po +96 -0
- django/contrib/flatpages/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/en_AU/LC_MESSAGES/django.po +88 -0
- django/contrib/flatpages/locale/en_GB/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/en_GB/LC_MESSAGES/django.po +85 -0
- django/contrib/flatpages/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/eo/LC_MESSAGES/django.po +93 -0
- django/contrib/flatpages/locale/es/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/es/LC_MESSAGES/django.po +93 -0
- django/contrib/flatpages/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/es_AR/LC_MESSAGES/django.po +89 -0
- django/contrib/flatpages/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/es_CO/LC_MESSAGES/django.po +86 -0
- django/contrib/flatpages/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/es_MX/LC_MESSAGES/django.po +84 -0
- django/contrib/flatpages/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/es_VE/LC_MESSAGES/django.po +85 -0
- django/contrib/flatpages/locale/et/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/et/LC_MESSAGES/django.po +89 -0
- django/contrib/flatpages/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/eu/LC_MESSAGES/django.po +90 -0
- django/contrib/flatpages/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/fa/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/fi/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/fr/LC_MESSAGES/django.po +93 -0
- django/contrib/flatpages/locale/fy/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/fy/LC_MESSAGES/django.po +74 -0
- django/contrib/flatpages/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ga/LC_MESSAGES/django.po +91 -0
- django/contrib/flatpages/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/gd/LC_MESSAGES/django.po +95 -0
- django/contrib/flatpages/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/gl/LC_MESSAGES/django.po +89 -0
- django/contrib/flatpages/locale/he/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/he/LC_MESSAGES/django.po +87 -0
- django/contrib/flatpages/locale/hi/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/hi/LC_MESSAGES/django.po +81 -0
- django/contrib/flatpages/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/hr/LC_MESSAGES/django.po +93 -0
- django/contrib/flatpages/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/hsb/LC_MESSAGES/django.po +89 -0
- django/contrib/flatpages/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/hu/LC_MESSAGES/django.po +94 -0
- django/contrib/flatpages/locale/hy/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/hy/LC_MESSAGES/django.po +84 -0
- django/contrib/flatpages/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ia/LC_MESSAGES/django.po +77 -0
- django/contrib/flatpages/locale/id/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/id/LC_MESSAGES/django.po +90 -0
- django/contrib/flatpages/locale/io/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/io/LC_MESSAGES/django.po +74 -0
- django/contrib/flatpages/locale/is/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/is/LC_MESSAGES/django.po +87 -0
- django/contrib/flatpages/locale/it/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/it/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ja/LC_MESSAGES/django.po +90 -0
- django/contrib/flatpages/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ka/LC_MESSAGES/django.po +91 -0
- django/contrib/flatpages/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/kk/LC_MESSAGES/django.po +88 -0
- django/contrib/flatpages/locale/km/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/km/LC_MESSAGES/django.po +80 -0
- django/contrib/flatpages/locale/kn/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/kn/LC_MESSAGES/django.po +82 -0
- django/contrib/flatpages/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ko/LC_MESSAGES/django.po +90 -0
- django/contrib/flatpages/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ky/LC_MESSAGES/django.po +89 -0
- django/contrib/flatpages/locale/lb/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/lb/LC_MESSAGES/django.po +77 -0
- django/contrib/flatpages/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/lt/LC_MESSAGES/django.po +91 -0
- django/contrib/flatpages/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/lv/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/mk/LC_MESSAGES/django.po +90 -0
- django/contrib/flatpages/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ml/LC_MESSAGES/django.po +89 -0
- django/contrib/flatpages/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/mn/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/mr/LC_MESSAGES/django.po +82 -0
- django/contrib/flatpages/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ms/LC_MESSAGES/django.po +87 -0
- django/contrib/flatpages/locale/my/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/my/LC_MESSAGES/django.po +77 -0
- django/contrib/flatpages/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/nb/LC_MESSAGES/django.po +91 -0
- django/contrib/flatpages/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ne/LC_MESSAGES/django.po +77 -0
- django/contrib/flatpages/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/nl/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/nn/LC_MESSAGES/django.po +90 -0
- django/contrib/flatpages/locale/os/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/os/LC_MESSAGES/django.po +86 -0
- django/contrib/flatpages/locale/pa/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/pa/LC_MESSAGES/django.po +78 -0
- django/contrib/flatpages/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/pl/LC_MESSAGES/django.po +96 -0
- django/contrib/flatpages/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/pt/LC_MESSAGES/django.po +93 -0
- django/contrib/flatpages/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/pt_BR/LC_MESSAGES/django.po +98 -0
- django/contrib/flatpages/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ro/LC_MESSAGES/django.po +96 -0
- django/contrib/flatpages/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ru/LC_MESSAGES/django.po +95 -0
- django/contrib/flatpages/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/sk/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/sl/LC_MESSAGES/django.po +93 -0
- django/contrib/flatpages/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/sq/LC_MESSAGES/django.po +90 -0
- django/contrib/flatpages/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/sr/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/sr_Latn/LC_MESSAGES/django.po +93 -0
- django/contrib/flatpages/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/sv/LC_MESSAGES/django.po +92 -0
- django/contrib/flatpages/locale/sw/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/sw/LC_MESSAGES/django.po +83 -0
- django/contrib/flatpages/locale/ta/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ta/LC_MESSAGES/django.po +80 -0
- django/contrib/flatpages/locale/te/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/te/LC_MESSAGES/django.po +79 -0
- django/contrib/flatpages/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/tg/LC_MESSAGES/django.po +86 -0
- django/contrib/flatpages/locale/th/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/th/LC_MESSAGES/django.po +80 -0
- django/contrib/flatpages/locale/tk/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/tk/LC_MESSAGES/django.po +84 -0
- django/contrib/flatpages/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/tr/LC_MESSAGES/django.po +94 -0
- django/contrib/flatpages/locale/tt/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/tt/LC_MESSAGES/django.po +84 -0
- django/contrib/flatpages/locale/udm/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/udm/LC_MESSAGES/django.po +77 -0
- django/contrib/flatpages/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ug/LC_MESSAGES/django.po +85 -0
- django/contrib/flatpages/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/uk/LC_MESSAGES/django.po +99 -0
- django/contrib/flatpages/locale/ur/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/ur/LC_MESSAGES/django.po +84 -0
- django/contrib/flatpages/locale/vi/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/vi/LC_MESSAGES/django.po +82 -0
- django/contrib/flatpages/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/zh_Hans/LC_MESSAGES/django.po +89 -0
- django/contrib/flatpages/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/contrib/flatpages/locale/zh_Hant/LC_MESSAGES/django.po +88 -0
- django/contrib/flatpages/middleware.py +84 -0
- django/contrib/flatpages/migrations/0001_initial.py +68 -0
- django/contrib/flatpages/migrations/__init__.py +0 -0
- django/contrib/flatpages/models.py +49 -0
- django/contrib/flatpages/sitemaps.py +14 -0
- django/contrib/flatpages/templatetags/__init__.py +0 -0
- django/contrib/flatpages/templatetags/flatpages.py +101 -0
- django/contrib/flatpages/urls.py +6 -0
- django/contrib/flatpages/views.py +70 -0
- django/contrib/gis/__init__.py +0 -0
- django/contrib/gis/admin/__init__.py +29 -0
- django/contrib/gis/admin/options.py +21 -0
- django/contrib/gis/apps.py +17 -0
- django/contrib/gis/checks.py +17 -0
- django/contrib/gis/db/__init__.py +0 -0
- django/contrib/gis/db/backends/__init__.py +0 -0
- django/contrib/gis/db/backends/base/__init__.py +0 -0
- django/contrib/gis/db/backends/base/adapter.py +26 -0
- django/contrib/gis/db/backends/base/features.py +109 -0
- django/contrib/gis/db/backends/base/models.py +133 -0
- django/contrib/gis/db/backends/base/operations.py +222 -0
- django/contrib/gis/db/backends/mysql/__init__.py +0 -0
- django/contrib/gis/db/backends/mysql/base.py +14 -0
- django/contrib/gis/db/backends/mysql/features.py +42 -0
- django/contrib/gis/db/backends/mysql/introspection.py +33 -0
- django/contrib/gis/db/backends/mysql/operations.py +155 -0
- django/contrib/gis/db/backends/mysql/schema.py +102 -0
- django/contrib/gis/db/backends/oracle/__init__.py +0 -0
- django/contrib/gis/db/backends/oracle/adapter.py +62 -0
- django/contrib/gis/db/backends/oracle/base.py +14 -0
- django/contrib/gis/db/backends/oracle/features.py +41 -0
- django/contrib/gis/db/backends/oracle/introspection.py +49 -0
- django/contrib/gis/db/backends/oracle/models.py +67 -0
- django/contrib/gis/db/backends/oracle/operations.py +258 -0
- django/contrib/gis/db/backends/oracle/schema.py +151 -0
- django/contrib/gis/db/backends/postgis/__init__.py +0 -0
- django/contrib/gis/db/backends/postgis/adapter.py +63 -0
- django/contrib/gis/db/backends/postgis/base.py +161 -0
- django/contrib/gis/db/backends/postgis/const.py +63 -0
- django/contrib/gis/db/backends/postgis/features.py +13 -0
- django/contrib/gis/db/backends/postgis/introspection.py +73 -0
- django/contrib/gis/db/backends/postgis/models.py +73 -0
- django/contrib/gis/db/backends/postgis/operations.py +428 -0
- django/contrib/gis/db/backends/postgis/pgraster.py +152 -0
- django/contrib/gis/db/backends/postgis/schema.py +126 -0
- django/contrib/gis/db/backends/spatialite/__init__.py +0 -0
- django/contrib/gis/db/backends/spatialite/adapter.py +10 -0
- django/contrib/gis/db/backends/spatialite/base.py +79 -0
- django/contrib/gis/db/backends/spatialite/client.py +5 -0
- django/contrib/gis/db/backends/spatialite/features.py +27 -0
- django/contrib/gis/db/backends/spatialite/introspection.py +83 -0
- django/contrib/gis/db/backends/spatialite/models.py +71 -0
- django/contrib/gis/db/backends/spatialite/operations.py +239 -0
- django/contrib/gis/db/backends/spatialite/schema.py +195 -0
- django/contrib/gis/db/backends/utils.py +29 -0
- django/contrib/gis/db/models/__init__.py +30 -0
- django/contrib/gis/db/models/aggregates.py +95 -0
- django/contrib/gis/db/models/fields.py +471 -0
- django/contrib/gis/db/models/functions.py +640 -0
- django/contrib/gis/db/models/lookups.py +395 -0
- django/contrib/gis/db/models/proxy.py +89 -0
- django/contrib/gis/db/models/sql/__init__.py +6 -0
- django/contrib/gis/db/models/sql/conversion.py +74 -0
- django/contrib/gis/feeds.py +151 -0
- django/contrib/gis/forms/__init__.py +13 -0
- django/contrib/gis/forms/fields.py +155 -0
- django/contrib/gis/forms/widgets.py +129 -0
- django/contrib/gis/gdal/LICENSE +28 -0
- django/contrib/gis/gdal/__init__.py +59 -0
- django/contrib/gis/gdal/base.py +6 -0
- django/contrib/gis/gdal/datasource.py +128 -0
- django/contrib/gis/gdal/driver.py +101 -0
- django/contrib/gis/gdal/envelope.py +205 -0
- django/contrib/gis/gdal/error.py +61 -0
- django/contrib/gis/gdal/feature.py +120 -0
- django/contrib/gis/gdal/field.py +266 -0
- django/contrib/gis/gdal/geojson.py +125 -0
- django/contrib/gis/gdal/geometries.py +880 -0
- django/contrib/gis/gdal/geomtype.py +146 -0
- django/contrib/gis/gdal/layer.py +234 -0
- django/contrib/gis/gdal/libgdal.py +140 -0
- django/contrib/gis/gdal/prototypes/__init__.py +0 -0
- django/contrib/gis/gdal/prototypes/ds.py +116 -0
- django/contrib/gis/gdal/prototypes/errcheck.py +142 -0
- django/contrib/gis/gdal/prototypes/generation.py +178 -0
- django/contrib/gis/gdal/prototypes/geom.py +165 -0
- django/contrib/gis/gdal/prototypes/raster.py +169 -0
- django/contrib/gis/gdal/prototypes/srs.py +112 -0
- django/contrib/gis/gdal/raster/__init__.py +0 -0
- django/contrib/gis/gdal/raster/band.py +273 -0
- django/contrib/gis/gdal/raster/base.py +77 -0
- django/contrib/gis/gdal/raster/const.py +105 -0
- django/contrib/gis/gdal/raster/source.py +580 -0
- django/contrib/gis/gdal/srs.py +386 -0
- django/contrib/gis/geoip2.py +230 -0
- django/contrib/gis/geometry.py +19 -0
- django/contrib/gis/geos/LICENSE +27 -0
- django/contrib/gis/geos/__init__.py +19 -0
- django/contrib/gis/geos/base.py +6 -0
- django/contrib/gis/geos/collections.py +127 -0
- django/contrib/gis/geos/coordseq.py +272 -0
- django/contrib/gis/geos/error.py +4 -0
- django/contrib/gis/geos/factory.py +33 -0
- django/contrib/gis/geos/geometry.py +816 -0
- django/contrib/gis/geos/io.py +28 -0
- django/contrib/gis/geos/libgeos.py +179 -0
- django/contrib/gis/geos/linestring.py +193 -0
- django/contrib/gis/geos/mutable_list.py +315 -0
- django/contrib/gis/geos/point.py +163 -0
- django/contrib/gis/geos/polygon.py +189 -0
- django/contrib/gis/geos/prepared.py +51 -0
- django/contrib/gis/geos/prototypes/__init__.py +71 -0
- django/contrib/gis/geos/prototypes/coordseq.py +116 -0
- django/contrib/gis/geos/prototypes/errcheck.py +98 -0
- django/contrib/gis/geos/prototypes/geom.py +94 -0
- django/contrib/gis/geos/prototypes/io.py +561 -0
- django/contrib/gis/geos/prototypes/misc.py +35 -0
- django/contrib/gis/geos/prototypes/predicates.py +52 -0
- django/contrib/gis/geos/prototypes/prepared.py +26 -0
- django/contrib/gis/geos/prototypes/threadsafe.py +77 -0
- django/contrib/gis/geos/prototypes/topology.py +74 -0
- django/contrib/gis/locale/af/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/af/LC_MESSAGES/django.po +82 -0
- django/contrib/gis/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ar/LC_MESSAGES/django.po +89 -0
- django/contrib/gis/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ar_DZ/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/ast/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ast/LC_MESSAGES/django.po +85 -0
- django/contrib/gis/locale/az/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/az/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/be/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/be/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/bg/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/bn/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/bn/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/br/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/br/LC_MESSAGES/django.po +91 -0
- django/contrib/gis/locale/bs/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/bs/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ca/LC_MESSAGES/django.po +91 -0
- django/contrib/gis/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ckb/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/cs/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/cy/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/cy/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/da/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/da/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/de/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/de/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/dsb/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/el/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/el/LC_MESSAGES/django.po +91 -0
- django/contrib/gis/locale/en/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/en/LC_MESSAGES/django.po +98 -0
- django/contrib/gis/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/en_AU/LC_MESSAGES/django.po +80 -0
- django/contrib/gis/locale/en_GB/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/en_GB/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/eo/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/es/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/es/LC_MESSAGES/django.po +92 -0
- django/contrib/gis/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/es_AR/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/es_CO/LC_MESSAGES/django.po +90 -0
- django/contrib/gis/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/es_MX/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/es_VE/LC_MESSAGES/django.po +80 -0
- django/contrib/gis/locale/et/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/et/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/eu/LC_MESSAGES/django.po +84 -0
- django/contrib/gis/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/fa/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/fi/LC_MESSAGES/django.po +84 -0
- django/contrib/gis/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/fr/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/fy/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/fy/LC_MESSAGES/django.po +80 -0
- django/contrib/gis/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ga/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/gd/LC_MESSAGES/django.po +89 -0
- django/contrib/gis/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/gl/LC_MESSAGES/django.po +89 -0
- django/contrib/gis/locale/he/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/he/LC_MESSAGES/django.po +83 -0
- django/contrib/gis/locale/hi/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/hi/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/hr/LC_MESSAGES/django.po +91 -0
- django/contrib/gis/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/hsb/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/hu/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/hy/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/hy/LC_MESSAGES/django.po +81 -0
- django/contrib/gis/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ia/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/id/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/id/LC_MESSAGES/django.po +90 -0
- django/contrib/gis/locale/io/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/io/LC_MESSAGES/django.po +80 -0
- django/contrib/gis/locale/is/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/is/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/it/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/it/LC_MESSAGES/django.po +94 -0
- django/contrib/gis/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ja/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ka/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/kk/LC_MESSAGES/django.po +85 -0
- django/contrib/gis/locale/km/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/km/LC_MESSAGES/django.po +80 -0
- django/contrib/gis/locale/kn/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/kn/LC_MESSAGES/django.po +80 -0
- django/contrib/gis/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ko/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ky/LC_MESSAGES/django.po +83 -0
- django/contrib/gis/locale/lb/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/lb/LC_MESSAGES/django.po +80 -0
- django/contrib/gis/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/lt/LC_MESSAGES/django.po +89 -0
- django/contrib/gis/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/lv/LC_MESSAGES/django.po +89 -0
- django/contrib/gis/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/mk/LC_MESSAGES/django.po +91 -0
- django/contrib/gis/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ml/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/mn/LC_MESSAGES/django.po +91 -0
- django/contrib/gis/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/mr/LC_MESSAGES/django.po +82 -0
- django/contrib/gis/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ms/LC_MESSAGES/django.po +84 -0
- django/contrib/gis/locale/my/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/my/LC_MESSAGES/django.po +85 -0
- django/contrib/gis/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/nb/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ne/LC_MESSAGES/django.po +84 -0
- django/contrib/gis/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/nl/LC_MESSAGES/django.po +91 -0
- django/contrib/gis/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/nn/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/os/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/os/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/pa/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/pa/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/pl/LC_MESSAGES/django.po +92 -0
- django/contrib/gis/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/pt/LC_MESSAGES/django.po +93 -0
- django/contrib/gis/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/pt_BR/LC_MESSAGES/django.po +94 -0
- django/contrib/gis/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ro/LC_MESSAGES/django.po +89 -0
- django/contrib/gis/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ru/LC_MESSAGES/django.po +91 -0
- django/contrib/gis/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/sk/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/sl/LC_MESSAGES/django.po +89 -0
- django/contrib/gis/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/sq/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/sr/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/sr_Latn/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/sv/LC_MESSAGES/django.po +90 -0
- django/contrib/gis/locale/sw/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/sw/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/ta/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ta/LC_MESSAGES/django.po +80 -0
- django/contrib/gis/locale/te/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/te/LC_MESSAGES/django.po +84 -0
- django/contrib/gis/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/tg/LC_MESSAGES/django.po +84 -0
- django/contrib/gis/locale/th/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/th/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/tr/LC_MESSAGES/django.po +88 -0
- django/contrib/gis/locale/tt/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/tt/LC_MESSAGES/django.po +85 -0
- django/contrib/gis/locale/udm/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/udm/LC_MESSAGES/django.po +80 -0
- django/contrib/gis/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ug/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/uk/LC_MESSAGES/django.po +93 -0
- django/contrib/gis/locale/ur/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/ur/LC_MESSAGES/django.po +86 -0
- django/contrib/gis/locale/vi/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/vi/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/zh_Hans/LC_MESSAGES/django.po +90 -0
- django/contrib/gis/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/contrib/gis/locale/zh_Hant/LC_MESSAGES/django.po +87 -0
- django/contrib/gis/management/__init__.py +0 -0
- django/contrib/gis/management/commands/__init__.py +0 -0
- django/contrib/gis/management/commands/inspectdb.py +18 -0
- django/contrib/gis/management/commands/ogrinspect.py +164 -0
- django/contrib/gis/measure.py +375 -0
- django/contrib/gis/ptr.py +41 -0
- django/contrib/gis/serializers/__init__.py +0 -0
- django/contrib/gis/serializers/geojson.py +77 -0
- django/contrib/gis/shortcuts.py +40 -0
- django/contrib/gis/sitemaps/__init__.py +4 -0
- django/contrib/gis/sitemaps/kml.py +78 -0
- django/contrib/gis/sitemaps/views.py +65 -0
- django/contrib/gis/static/gis/css/ol3.css +39 -0
- django/contrib/gis/static/gis/img/draw_line_off.svg +1 -0
- django/contrib/gis/static/gis/img/draw_line_on.svg +1 -0
- django/contrib/gis/static/gis/img/draw_point_off.svg +1 -0
- django/contrib/gis/static/gis/img/draw_point_on.svg +1 -0
- django/contrib/gis/static/gis/img/draw_polygon_off.svg +1 -0
- django/contrib/gis/static/gis/img/draw_polygon_on.svg +1 -0
- django/contrib/gis/static/gis/js/OLMapWidget.js +333 -0
- django/contrib/gis/templates/gis/kml/base.kml +6 -0
- django/contrib/gis/templates/gis/kml/placemarks.kml +8 -0
- django/contrib/gis/templates/gis/openlayers.html +12 -0
- django/contrib/gis/utils/__init__.py +17 -0
- django/contrib/gis/utils/layermapping.py +737 -0
- django/contrib/gis/utils/ogrinfo.py +53 -0
- django/contrib/gis/utils/ogrinspect.py +269 -0
- django/contrib/gis/utils/srs.py +78 -0
- django/contrib/gis/views.py +22 -0
- django/contrib/humanize/__init__.py +0 -0
- django/contrib/humanize/apps.py +7 -0
- django/contrib/humanize/locale/af/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/af/LC_MESSAGES/django.po +328 -0
- django/contrib/humanize/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ar/LC_MESSAGES/django.po +449 -0
- django/contrib/humanize/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ar_DZ/LC_MESSAGES/django.po +555 -0
- django/contrib/humanize/locale/ast/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ast/LC_MESSAGES/django.po +262 -0
- django/contrib/humanize/locale/az/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/az/LC_MESSAGES/django.po +354 -0
- django/contrib/humanize/locale/be/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/be/LC_MESSAGES/django.po +410 -0
- django/contrib/humanize/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/bg/LC_MESSAGES/django.po +332 -0
- django/contrib/humanize/locale/bn/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/bn/LC_MESSAGES/django.po +263 -0
- django/contrib/humanize/locale/br/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/br/LC_MESSAGES/django.po +517 -0
- django/contrib/humanize/locale/bs/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/bs/LC_MESSAGES/django.po +292 -0
- django/contrib/humanize/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ca/LC_MESSAGES/django.po +332 -0
- django/contrib/humanize/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ckb/LC_MESSAGES/django.po +351 -0
- django/contrib/humanize/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/cs/LC_MESSAGES/django.po +411 -0
- django/contrib/humanize/locale/cy/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/cy/LC_MESSAGES/django.po +318 -0
- django/contrib/humanize/locale/da/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/da/LC_MESSAGES/django.po +353 -0
- django/contrib/humanize/locale/de/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/de/LC_MESSAGES/django.po +330 -0
- django/contrib/humanize/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/dsb/LC_MESSAGES/django.po +387 -0
- django/contrib/humanize/locale/el/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/el/LC_MESSAGES/django.po +398 -0
- django/contrib/humanize/locale/en/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/en/LC_MESSAGES/django.po +403 -0
- django/contrib/humanize/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/en_AU/LC_MESSAGES/django.po +328 -0
- django/contrib/humanize/locale/en_GB/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/en_GB/LC_MESSAGES/django.po +263 -0
- django/contrib/humanize/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/eo/LC_MESSAGES/django.po +394 -0
- django/contrib/humanize/locale/es/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/es/LC_MESSAGES/django.po +365 -0
- django/contrib/humanize/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/es_AR/LC_MESSAGES/django.po +332 -0
- django/contrib/humanize/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/es_CO/LC_MESSAGES/django.po +267 -0
- django/contrib/humanize/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/es_MX/LC_MESSAGES/django.po +264 -0
- django/contrib/humanize/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/es_VE/LC_MESSAGES/django.po +262 -0
- django/contrib/humanize/locale/et/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/et/LC_MESSAGES/django.po +334 -0
- django/contrib/humanize/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/eu/LC_MESSAGES/django.po +332 -0
- django/contrib/humanize/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/fa/LC_MESSAGES/django.po +335 -0
- django/contrib/humanize/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/fi/LC_MESSAGES/django.po +353 -0
- django/contrib/humanize/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/fr/LC_MESSAGES/django.po +382 -0
- django/contrib/humanize/locale/fy/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/fy/LC_MESSAGES/django.po +261 -0
- django/contrib/humanize/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ga/LC_MESSAGES/django.po +418 -0
- django/contrib/humanize/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/gd/LC_MESSAGES/django.po +389 -0
- django/contrib/humanize/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/gl/LC_MESSAGES/django.po +332 -0
- django/contrib/humanize/locale/he/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/he/LC_MESSAGES/django.po +389 -0
- django/contrib/humanize/locale/hi/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/hi/LC_MESSAGES/django.po +263 -0
- django/contrib/humanize/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/hr/LC_MESSAGES/django.po +359 -0
- django/contrib/humanize/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/hsb/LC_MESSAGES/django.po +387 -0
- django/contrib/humanize/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/hu/LC_MESSAGES/django.po +332 -0
- django/contrib/humanize/locale/hy/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/hy/LC_MESSAGES/django.po +330 -0
- django/contrib/humanize/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ia/LC_MESSAGES/django.po +262 -0
- django/contrib/humanize/locale/id/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/id/LC_MESSAGES/django.po +304 -0
- django/contrib/humanize/locale/io/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/io/LC_MESSAGES/django.po +261 -0
- django/contrib/humanize/locale/is/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/is/LC_MESSAGES/django.po +399 -0
- django/contrib/humanize/locale/it/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/it/LC_MESSAGES/django.po +368 -0
- django/contrib/humanize/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ja/LC_MESSAGES/django.po +301 -0
- django/contrib/humanize/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ka/LC_MESSAGES/django.po +350 -0
- django/contrib/humanize/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/kk/LC_MESSAGES/django.po +394 -0
- django/contrib/humanize/locale/km/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/km/LC_MESSAGES/django.po +233 -0
- django/contrib/humanize/locale/kn/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/kn/LC_MESSAGES/django.po +233 -0
- django/contrib/humanize/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ko/LC_MESSAGES/django.po +304 -0
- django/contrib/humanize/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ky/LC_MESSAGES/django.po +299 -0
- django/contrib/humanize/locale/lb/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/lb/LC_MESSAGES/django.po +261 -0
- django/contrib/humanize/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/lt/LC_MESSAGES/django.po +477 -0
- django/contrib/humanize/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/lv/LC_MESSAGES/django.po +386 -0
- django/contrib/humanize/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/mk/LC_MESSAGES/django.po +262 -0
- django/contrib/humanize/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ml/LC_MESSAGES/django.po +396 -0
- django/contrib/humanize/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/mn/LC_MESSAGES/django.po +333 -0
- django/contrib/humanize/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/mr/LC_MESSAGES/django.po +350 -0
- django/contrib/humanize/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ms/LC_MESSAGES/django.po +299 -0
- django/contrib/humanize/locale/my/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/my/LC_MESSAGES/django.po +234 -0
- django/contrib/humanize/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/nb/LC_MESSAGES/django.po +331 -0
- django/contrib/humanize/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ne/LC_MESSAGES/django.po +395 -0
- django/contrib/humanize/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/nl/LC_MESSAGES/django.po +332 -0
- django/contrib/humanize/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/nn/LC_MESSAGES/django.po +330 -0
- django/contrib/humanize/locale/os/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/os/LC_MESSAGES/django.po +262 -0
- django/contrib/humanize/locale/pa/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/pa/LC_MESSAGES/django.po +263 -0
- django/contrib/humanize/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/pl/LC_MESSAGES/django.po +416 -0
- django/contrib/humanize/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/pt/LC_MESSAGES/django.po +362 -0
- django/contrib/humanize/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/pt_BR/LC_MESSAGES/django.po +367 -0
- django/contrib/humanize/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ro/LC_MESSAGES/django.po +440 -0
- django/contrib/humanize/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ru/LC_MESSAGES/django.po +417 -0
- django/contrib/humanize/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/sk/LC_MESSAGES/django.po +390 -0
- django/contrib/humanize/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/sl/LC_MESSAGES/django.po +392 -0
- django/contrib/humanize/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/sq/LC_MESSAGES/django.po +352 -0
- django/contrib/humanize/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/sr/LC_MESSAGES/django.po +380 -0
- django/contrib/humanize/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/sr_Latn/LC_MESSAGES/django.po +379 -0
- django/contrib/humanize/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/sv/LC_MESSAGES/django.po +357 -0
- django/contrib/humanize/locale/sw/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/sw/LC_MESSAGES/django.po +262 -0
- django/contrib/humanize/locale/ta/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ta/LC_MESSAGES/django.po +261 -0
- django/contrib/humanize/locale/te/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/te/LC_MESSAGES/django.po +262 -0
- django/contrib/humanize/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/tg/LC_MESSAGES/django.po +393 -0
- django/contrib/humanize/locale/th/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/th/LC_MESSAGES/django.po +357 -0
- django/contrib/humanize/locale/tk/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/tk/LC_MESSAGES/django.po +328 -0
- django/contrib/humanize/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/tr/LC_MESSAGES/django.po +354 -0
- django/contrib/humanize/locale/tt/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/tt/LC_MESSAGES/django.po +233 -0
- django/contrib/humanize/locale/udm/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/udm/LC_MESSAGES/django.po +233 -0
- django/contrib/humanize/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ug/LC_MESSAGES/django.po +349 -0
- django/contrib/humanize/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/uk/LC_MESSAGES/django.po +395 -0
- django/contrib/humanize/locale/ur/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/ur/LC_MESSAGES/django.po +261 -0
- django/contrib/humanize/locale/uz/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/uz/LC_MESSAGES/django.po +353 -0
- django/contrib/humanize/locale/vi/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/vi/LC_MESSAGES/django.po +235 -0
- django/contrib/humanize/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/zh_Hans/LC_MESSAGES/django.po +308 -0
- django/contrib/humanize/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/contrib/humanize/locale/zh_Hant/LC_MESSAGES/django.po +304 -0
- django/contrib/humanize/templatetags/__init__.py +0 -0
- django/contrib/humanize/templatetags/humanize.py +346 -0
- django/contrib/messages/__init__.py +3 -0
- django/contrib/messages/api.py +127 -0
- django/contrib/messages/apps.py +19 -0
- django/contrib/messages/constants.py +21 -0
- django/contrib/messages/context_processors.py +13 -0
- django/contrib/messages/middleware.py +56 -0
- django/contrib/messages/storage/__init__.py +12 -0
- django/contrib/messages/storage/base.py +190 -0
- django/contrib/messages/storage/cookie.py +248 -0
- django/contrib/messages/storage/fallback.py +65 -0
- django/contrib/messages/storage/session.py +57 -0
- django/contrib/messages/test.py +11 -0
- django/contrib/messages/utils.py +12 -0
- django/contrib/messages/views.py +19 -0
- django/contrib/postgres/__init__.py +0 -0
- django/contrib/postgres/aggregates/__init__.py +2 -0
- django/contrib/postgres/aggregates/general.py +107 -0
- django/contrib/postgres/aggregates/mixins.py +18 -0
- django/contrib/postgres/aggregates/statistics.py +75 -0
- django/contrib/postgres/apps.py +91 -0
- django/contrib/postgres/constraints.py +242 -0
- django/contrib/postgres/expressions.py +15 -0
- django/contrib/postgres/fields/__init__.py +5 -0
- django/contrib/postgres/fields/array.py +383 -0
- django/contrib/postgres/fields/citext.py +45 -0
- django/contrib/postgres/fields/hstore.py +113 -0
- django/contrib/postgres/fields/jsonb.py +14 -0
- django/contrib/postgres/fields/ranges.py +388 -0
- django/contrib/postgres/fields/utils.py +3 -0
- django/contrib/postgres/forms/__init__.py +3 -0
- django/contrib/postgres/forms/array.py +250 -0
- django/contrib/postgres/forms/hstore.py +59 -0
- django/contrib/postgres/forms/ranges.py +119 -0
- django/contrib/postgres/functions.py +11 -0
- django/contrib/postgres/indexes.py +245 -0
- django/contrib/postgres/jinja2/postgres/widgets/split_array.html +1 -0
- django/contrib/postgres/locale/af/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/af/LC_MESSAGES/django.po +103 -0
- django/contrib/postgres/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ar/LC_MESSAGES/django.po +130 -0
- django/contrib/postgres/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ar_DZ/LC_MESSAGES/django.po +131 -0
- django/contrib/postgres/locale/az/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/az/LC_MESSAGES/django.po +104 -0
- django/contrib/postgres/locale/be/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/be/LC_MESSAGES/django.po +120 -0
- django/contrib/postgres/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/bg/LC_MESSAGES/django.po +110 -0
- django/contrib/postgres/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ca/LC_MESSAGES/django.po +114 -0
- django/contrib/postgres/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ckb/LC_MESSAGES/django.po +101 -0
- django/contrib/postgres/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/cs/LC_MESSAGES/django.po +119 -0
- django/contrib/postgres/locale/da/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/da/LC_MESSAGES/django.po +106 -0
- django/contrib/postgres/locale/de/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/de/LC_MESSAGES/django.po +111 -0
- django/contrib/postgres/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/dsb/LC_MESSAGES/django.po +118 -0
- django/contrib/postgres/locale/el/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/el/LC_MESSAGES/django.po +111 -0
- django/contrib/postgres/locale/en/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/en/LC_MESSAGES/django.po +114 -0
- django/contrib/postgres/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/en_AU/LC_MESSAGES/django.po +109 -0
- django/contrib/postgres/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/eo/LC_MESSAGES/django.po +109 -0
- django/contrib/postgres/locale/es/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/es/LC_MESSAGES/django.po +121 -0
- django/contrib/postgres/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/es_AR/LC_MESSAGES/django.po +115 -0
- django/contrib/postgres/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/es_CO/LC_MESSAGES/django.po +112 -0
- django/contrib/postgres/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/es_MX/LC_MESSAGES/django.po +98 -0
- django/contrib/postgres/locale/et/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/et/LC_MESSAGES/django.po +111 -0
- django/contrib/postgres/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/eu/LC_MESSAGES/django.po +108 -0
- django/contrib/postgres/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/fa/LC_MESSAGES/django.po +108 -0
- django/contrib/postgres/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/fi/LC_MESSAGES/django.po +105 -0
- django/contrib/postgres/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/fr/LC_MESSAGES/django.po +114 -0
- django/contrib/postgres/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ga/LC_MESSAGES/django.po +125 -0
- django/contrib/postgres/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/gd/LC_MESSAGES/django.po +125 -0
- django/contrib/postgres/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/gl/LC_MESSAGES/django.po +108 -0
- django/contrib/postgres/locale/he/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/he/LC_MESSAGES/django.po +107 -0
- django/contrib/postgres/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/hr/LC_MESSAGES/django.po +114 -0
- django/contrib/postgres/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/hsb/LC_MESSAGES/django.po +118 -0
- django/contrib/postgres/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/hu/LC_MESSAGES/django.po +110 -0
- django/contrib/postgres/locale/hy/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/hy/LC_MESSAGES/django.po +109 -0
- django/contrib/postgres/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ia/LC_MESSAGES/django.po +98 -0
- django/contrib/postgres/locale/id/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/id/LC_MESSAGES/django.po +105 -0
- django/contrib/postgres/locale/is/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/is/LC_MESSAGES/django.po +108 -0
- django/contrib/postgres/locale/it/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/it/LC_MESSAGES/django.po +122 -0
- django/contrib/postgres/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ja/LC_MESSAGES/django.po +100 -0
- django/contrib/postgres/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ka/LC_MESSAGES/django.po +105 -0
- django/contrib/postgres/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/kk/LC_MESSAGES/django.po +97 -0
- django/contrib/postgres/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ko/LC_MESSAGES/django.po +105 -0
- django/contrib/postgres/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ky/LC_MESSAGES/django.po +100 -0
- django/contrib/postgres/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/lt/LC_MESSAGES/django.po +120 -0
- django/contrib/postgres/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/lv/LC_MESSAGES/django.po +116 -0
- django/contrib/postgres/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/mk/LC_MESSAGES/django.po +112 -0
- django/contrib/postgres/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ml/LC_MESSAGES/django.po +98 -0
- django/contrib/postgres/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/mn/LC_MESSAGES/django.po +111 -0
- django/contrib/postgres/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/mr/LC_MESSAGES/django.po +97 -0
- django/contrib/postgres/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ms/LC_MESSAGES/django.po +100 -0
- django/contrib/postgres/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/nb/LC_MESSAGES/django.po +107 -0
- django/contrib/postgres/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ne/LC_MESSAGES/django.po +96 -0
- django/contrib/postgres/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/nl/LC_MESSAGES/django.po +112 -0
- django/contrib/postgres/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/nn/LC_MESSAGES/django.po +106 -0
- django/contrib/postgres/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/pl/LC_MESSAGES/django.po +127 -0
- django/contrib/postgres/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/pt/LC_MESSAGES/django.po +107 -0
- django/contrib/postgres/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/pt_BR/LC_MESSAGES/django.po +123 -0
- django/contrib/postgres/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ro/LC_MESSAGES/django.po +120 -0
- django/contrib/postgres/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ru/LC_MESSAGES/django.po +131 -0
- django/contrib/postgres/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/sk/LC_MESSAGES/django.po +121 -0
- django/contrib/postgres/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/sl/LC_MESSAGES/django.po +120 -0
- django/contrib/postgres/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/sq/LC_MESSAGES/django.po +110 -0
- django/contrib/postgres/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/sr/LC_MESSAGES/django.po +113 -0
- django/contrib/postgres/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/sr_Latn/LC_MESSAGES/django.po +112 -0
- django/contrib/postgres/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/sv/LC_MESSAGES/django.po +110 -0
- django/contrib/postgres/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/tg/LC_MESSAGES/django.po +101 -0
- django/contrib/postgres/locale/tk/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/tk/LC_MESSAGES/django.po +107 -0
- django/contrib/postgres/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/tr/LC_MESSAGES/django.po +109 -0
- django/contrib/postgres/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/ug/LC_MESSAGES/django.po +107 -0
- django/contrib/postgres/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/uk/LC_MESSAGES/django.po +126 -0
- django/contrib/postgres/locale/uz/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/uz/LC_MESSAGES/django.po +95 -0
- django/contrib/postgres/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/zh_Hans/LC_MESSAGES/django.po +100 -0
- django/contrib/postgres/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/contrib/postgres/locale/zh_Hant/LC_MESSAGES/django.po +98 -0
- django/contrib/postgres/lookups.py +78 -0
- django/contrib/postgres/operations.py +355 -0
- django/contrib/postgres/search.py +528 -0
- django/contrib/postgres/serializers.py +10 -0
- django/contrib/postgres/signals.py +120 -0
- django/contrib/postgres/templates/postgres/widgets/split_array.html +1 -0
- django/contrib/postgres/utils.py +53 -0
- django/contrib/postgres/validators.py +91 -0
- django/contrib/redirects/__init__.py +0 -0
- django/contrib/redirects/admin.py +9 -0
- django/contrib/redirects/apps.py +8 -0
- django/contrib/redirects/locale/af/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/af/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ar/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ar_DZ/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/ast/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ast/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/az/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/az/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/be/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/be/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/bg/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/bn/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/bn/LC_MESSAGES/django.po +48 -0
- django/contrib/redirects/locale/br/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/br/LC_MESSAGES/django.po +54 -0
- django/contrib/redirects/locale/bs/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/bs/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ca/LC_MESSAGES/django.po +54 -0
- django/contrib/redirects/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ckb/LC_MESSAGES/django.po +49 -0
- django/contrib/redirects/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/cs/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/cy/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/cy/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/da/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/da/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/de/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/de/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/dsb/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/el/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/el/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/en/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/en/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/en_AU/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/en_GB/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/en_GB/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/eo/LC_MESSAGES/django.po +49 -0
- django/contrib/redirects/locale/es/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/es/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/es_AR/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/es_CO/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/es_MX/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/es_VE/LC_MESSAGES/django.po +42 -0
- django/contrib/redirects/locale/et/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/et/LC_MESSAGES/django.po +54 -0
- django/contrib/redirects/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/eu/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/fa/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/fi/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/fr/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/fy/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/fy/LC_MESSAGES/django.po +42 -0
- django/contrib/redirects/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ga/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/gd/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/gl/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/he/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/he/LC_MESSAGES/django.po +49 -0
- django/contrib/redirects/locale/hi/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/hi/LC_MESSAGES/django.po +49 -0
- django/contrib/redirects/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/hr/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/hsb/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/hu/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/hy/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/hy/LC_MESSAGES/django.po +49 -0
- django/contrib/redirects/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ia/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/id/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/id/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/io/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/io/LC_MESSAGES/django.po +48 -0
- django/contrib/redirects/locale/is/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/is/LC_MESSAGES/django.po +49 -0
- django/contrib/redirects/locale/it/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/it/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ja/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ka/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/kab/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/kab/LC_MESSAGES/django.po +45 -0
- django/contrib/redirects/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/kk/LC_MESSAGES/django.po +48 -0
- django/contrib/redirects/locale/km/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/km/LC_MESSAGES/django.po +47 -0
- django/contrib/redirects/locale/kn/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/kn/LC_MESSAGES/django.po +47 -0
- django/contrib/redirects/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ko/LC_MESSAGES/django.po +56 -0
- django/contrib/redirects/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ky/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/lb/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/lb/LC_MESSAGES/django.po +42 -0
- django/contrib/redirects/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/lt/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/lv/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/mk/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ml/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/mn/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/mr/LC_MESSAGES/django.po +48 -0
- django/contrib/redirects/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ms/LC_MESSAGES/django.po +49 -0
- django/contrib/redirects/locale/my/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/my/LC_MESSAGES/django.po +46 -0
- django/contrib/redirects/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/nb/LC_MESSAGES/django.po +54 -0
- django/contrib/redirects/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ne/LC_MESSAGES/django.po +47 -0
- django/contrib/redirects/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/nl/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/nn/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/os/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/os/LC_MESSAGES/django.po +49 -0
- django/contrib/redirects/locale/pa/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/pa/LC_MESSAGES/django.po +47 -0
- django/contrib/redirects/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/pl/LC_MESSAGES/django.po +54 -0
- django/contrib/redirects/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/pt/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.po +57 -0
- django/contrib/redirects/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ro/LC_MESSAGES/django.po +54 -0
- django/contrib/redirects/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ru/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/sk/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/sl/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/sq/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/sr/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/sr_Latn/LC_MESSAGES/django.po +52 -0
- django/contrib/redirects/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/sv/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/sw/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/sw/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/locale/ta/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ta/LC_MESSAGES/django.po +49 -0
- django/contrib/redirects/locale/te/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/te/LC_MESSAGES/django.po +42 -0
- django/contrib/redirects/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/tg/LC_MESSAGES/django.po +45 -0
- django/contrib/redirects/locale/th/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/th/LC_MESSAGES/django.po +46 -0
- django/contrib/redirects/locale/tk/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/tk/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/tr/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/tt/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/tt/LC_MESSAGES/django.po +48 -0
- django/contrib/redirects/locale/udm/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/udm/LC_MESSAGES/django.po +42 -0
- django/contrib/redirects/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ug/LC_MESSAGES/django.po +50 -0
- django/contrib/redirects/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/uk/LC_MESSAGES/django.po +56 -0
- django/contrib/redirects/locale/ur/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/ur/LC_MESSAGES/django.po +46 -0
- django/contrib/redirects/locale/uz/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/uz/LC_MESSAGES/django.po +48 -0
- django/contrib/redirects/locale/vi/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/vi/LC_MESSAGES/django.po +49 -0
- django/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.po +53 -0
- django/contrib/redirects/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/contrib/redirects/locale/zh_Hant/LC_MESSAGES/django.po +51 -0
- django/contrib/redirects/middleware.py +96 -0
- django/contrib/redirects/migrations/0001_initial.py +64 -0
- django/contrib/redirects/migrations/0002_alter_redirect_new_path_help_text.py +23 -0
- django/contrib/redirects/migrations/__init__.py +0 -0
- django/contrib/redirects/models.py +35 -0
- django/contrib/sessions/__init__.py +0 -0
- django/contrib/sessions/apps.py +7 -0
- django/contrib/sessions/backends/__init__.py +0 -0
- django/contrib/sessions/backends/base.py +528 -0
- django/contrib/sessions/backends/cache.py +145 -0
- django/contrib/sessions/backends/cached_db.py +141 -0
- django/contrib/sessions/backends/db.py +198 -0
- django/contrib/sessions/backends/file.py +221 -0
- django/contrib/sessions/backends/signed_cookies.py +103 -0
- django/contrib/sessions/base_session.py +48 -0
- django/contrib/sessions/exceptions.py +19 -0
- django/contrib/sessions/locale/af/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/af/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ar/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ar_DZ/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/ast/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ast/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/az/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/az/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/be/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/be/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/bg/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/bn/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/bn/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/br/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/br/LC_MESSAGES/django.po +40 -0
- django/contrib/sessions/locale/bs/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/bs/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ca/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ckb/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/cs/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/cy/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/cy/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/da/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/da/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/de/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/de/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/dsb/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/el/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/el/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/en/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/en/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/en_AU/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/en_GB/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/en_GB/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/eo/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/es/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/es/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/es_AR/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/es_CO/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/es_MX/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/es_VE/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/et/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/et/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/eu/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/fa/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/fi/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/fr/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/fy/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/fy/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ga/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/gd/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/gl/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/he/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/he/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/hi/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/hi/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/hr/LC_MESSAGES/django.po +39 -0
- django/contrib/sessions/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/hsb/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/hu/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/hy/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/hy/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ia/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/id/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/id/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/io/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/io/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/is/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/is/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/it/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/it/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ja/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ka/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/kab/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/kab/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/kk/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/km/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/km/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/kn/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/kn/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ko/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ky/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/lb/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/lb/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/lt/LC_MESSAGES/django.po +39 -0
- django/contrib/sessions/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/lv/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/mk/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ml/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/mn/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/mr/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ms/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/my/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/my/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/nb/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ne/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/nl/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/nn/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/os/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/os/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/pa/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/pa/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/pl/LC_MESSAGES/django.po +39 -0
- django/contrib/sessions/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/pt/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/pt_BR/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ro/LC_MESSAGES/django.po +39 -0
- django/contrib/sessions/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ru/LC_MESSAGES/django.po +39 -0
- django/contrib/sessions/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/sk/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/sl/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/sq/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/sr/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/sr_Latn/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/sv/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/sw/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/sw/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/ta/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ta/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/te/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/te/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/tg/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/th/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/th/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/tk/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/tk/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/tr/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/tt/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/tt/LC_MESSAGES/django.po +36 -0
- django/contrib/sessions/locale/udm/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/udm/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ug/LC_MESSAGES/django.po +34 -0
- django/contrib/sessions/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/uk/LC_MESSAGES/django.po +40 -0
- django/contrib/sessions/locale/ur/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/ur/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/uz/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/uz/LC_MESSAGES/django.po +35 -0
- django/contrib/sessions/locale/vi/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/vi/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/zh_Hans/LC_MESSAGES/django.po +37 -0
- django/contrib/sessions/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/contrib/sessions/locale/zh_Hant/LC_MESSAGES/django.po +38 -0
- django/contrib/sessions/management/__init__.py +0 -0
- django/contrib/sessions/management/commands/__init__.py +0 -0
- django/contrib/sessions/management/commands/clearsessions.py +21 -0
- django/contrib/sessions/middleware.py +156 -0
- django/contrib/sessions/migrations/0001_initial.py +37 -0
- django/contrib/sessions/migrations/__init__.py +0 -0
- django/contrib/sessions/models.py +35 -0
- django/contrib/sessions/serializers.py +3 -0
- django/contrib/sitemaps/__init__.py +202 -0
- django/contrib/sitemaps/apps.py +8 -0
- django/contrib/sitemaps/templates/sitemap.xml +16 -0
- django/contrib/sitemaps/templates/sitemap_index.xml +13 -0
- django/contrib/sitemaps/views.py +140 -0
- django/contrib/sites/__init__.py +0 -0
- django/contrib/sites/admin.py +8 -0
- django/contrib/sites/apps.py +17 -0
- django/contrib/sites/checks.py +30 -0
- django/contrib/sites/locale/af/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/af/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/ar/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ar/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/ar_DZ/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ar_DZ/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/ast/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ast/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/az/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/az/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/be/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/be/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/bg/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/bg/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/bn/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/bn/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/br/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/br/LC_MESSAGES/django.po +40 -0
- django/contrib/sites/locale/bs/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/bs/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/ca/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ca/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/ckb/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ckb/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/cs/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/cs/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/cy/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/cy/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/da/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/da/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/de/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/de/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/dsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/dsb/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/el/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/el/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/en/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/en/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/en_AU/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/en_AU/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/en_GB/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/en_GB/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/eo/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/eo/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/es/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/es/LC_MESSAGES/django.po +39 -0
- django/contrib/sites/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/es_AR/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/es_CO/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/es_CO/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/es_MX/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/es_VE/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/et/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/et/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/eu/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/eu/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/fa/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/fa/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/fi/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/fi/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/fr/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/fr/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/fy/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/fy/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/ga/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ga/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/gd/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/gd/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/gl/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/gl/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/he/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/he/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/hi/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/hi/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/hr/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/hr/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/hsb/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/hsb/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/hu/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/hu/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/hy/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/hy/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/ia/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ia/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/id/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/id/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/io/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/io/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/is/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/is/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/it/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/it/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/ja/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ja/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/ka/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ka/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/kab/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/kab/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/kk/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/kk/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/km/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/km/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/kn/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/kn/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/ko/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ko/LC_MESSAGES/django.po +39 -0
- django/contrib/sites/locale/ky/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ky/LC_MESSAGES/django.po +34 -0
- django/contrib/sites/locale/lb/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/lb/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/lt/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/lt/LC_MESSAGES/django.po +41 -0
- django/contrib/sites/locale/lv/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/lv/LC_MESSAGES/django.po +40 -0
- django/contrib/sites/locale/mk/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/mk/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/ml/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ml/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/mn/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/mn/LC_MESSAGES/django.po +39 -0
- django/contrib/sites/locale/mr/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/mr/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/ms/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ms/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/my/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/my/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/nb/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/nb/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/ne/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ne/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/nl/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/nl/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/nn/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/nn/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/os/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/os/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/pa/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/pa/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/pl/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/pl/LC_MESSAGES/django.po +40 -0
- django/contrib/sites/locale/pt/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/pt/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/pt_BR/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/ro/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ro/LC_MESSAGES/django.po +40 -0
- django/contrib/sites/locale/ru/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ru/LC_MESSAGES/django.po +41 -0
- django/contrib/sites/locale/sk/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/sk/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/sl/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/sl/LC_MESSAGES/django.po +39 -0
- django/contrib/sites/locale/sq/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/sq/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/sr/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/sr/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/sr_Latn/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/sr_Latn/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/sv/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/sv/LC_MESSAGES/django.po +39 -0
- django/contrib/sites/locale/sw/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/sw/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/ta/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ta/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/te/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/te/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/tg/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/tg/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/th/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/th/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/tk/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/tk/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/tr/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/tr/LC_MESSAGES/django.po +39 -0
- django/contrib/sites/locale/tt/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/tt/LC_MESSAGES/django.po +36 -0
- django/contrib/sites/locale/udm/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/udm/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/ug/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ug/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/uk/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/uk/LC_MESSAGES/django.po +41 -0
- django/contrib/sites/locale/ur/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/ur/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/uz/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/uz/LC_MESSAGES/django.po +35 -0
- django/contrib/sites/locale/vi/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/vi/LC_MESSAGES/django.po +38 -0
- django/contrib/sites/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/zh_Hans/LC_MESSAGES/django.po +37 -0
- django/contrib/sites/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- django/contrib/sites/locale/zh_Hant/LC_MESSAGES/django.po +40 -0
- django/contrib/sites/management.py +47 -0
- django/contrib/sites/managers.py +65 -0
- django/contrib/sites/middleware.py +35 -0
- django/contrib/sites/migrations/0001_initial.py +43 -0
- django/contrib/sites/migrations/0002_alter_domain_unique.py +21 -0
- django/contrib/sites/migrations/__init__.py +0 -0
- django/contrib/sites/models.py +160 -0
- django/contrib/sites/requests.py +20 -0
- django/contrib/sites/shortcuts.py +33 -0
- django/contrib/staticfiles/__init__.py +0 -0
- django/contrib/staticfiles/apps.py +14 -0
- django/contrib/staticfiles/checks.py +29 -0
- django/contrib/staticfiles/finders.py +326 -0
- django/contrib/staticfiles/handlers.py +115 -0
- django/contrib/staticfiles/management/__init__.py +0 -0
- django/contrib/staticfiles/management/commands/__init__.py +0 -0
- django/contrib/staticfiles/management/commands/collectstatic.py +403 -0
- django/contrib/staticfiles/management/commands/findstatic.py +48 -0
- django/contrib/staticfiles/management/commands/runserver.py +36 -0
- django/contrib/staticfiles/storage.py +628 -0
- django/contrib/staticfiles/testing.py +13 -0
- django/contrib/staticfiles/urls.py +19 -0
- django/contrib/staticfiles/utils.py +71 -0
- django/contrib/staticfiles/views.py +40 -0
- django/contrib/syndication/__init__.py +0 -0
- django/contrib/syndication/apps.py +7 -0
- django/contrib/syndication/views.py +235 -0
- django/core/__init__.py +0 -0
- django/core/asgi.py +13 -0
- django/core/cache/__init__.py +74 -0
- django/core/cache/backends/__init__.py +0 -0
- django/core/cache/backends/base.py +434 -0
- django/core/cache/backends/db.py +302 -0
- django/core/cache/backends/dummy.py +34 -0
- django/core/cache/backends/filebased.py +169 -0
- django/core/cache/backends/locmem.py +118 -0
- django/core/cache/backends/memcached.py +217 -0
- django/core/cache/backends/redis.py +247 -0
- django/core/cache/utils.py +13 -0
- django/core/checks/__init__.py +48 -0
- django/core/checks/async_checks.py +16 -0
- django/core/checks/caches.py +76 -0
- django/core/checks/commands.py +28 -0
- django/core/checks/compatibility/__init__.py +0 -0
- django/core/checks/compatibility/django_4_0.py +19 -0
- django/core/checks/database.py +14 -0
- django/core/checks/files.py +19 -0
- django/core/checks/mail.py +63 -0
- django/core/checks/messages.py +82 -0
- django/core/checks/model_checks.py +227 -0
- django/core/checks/registry.py +129 -0
- django/core/checks/security/__init__.py +0 -0
- django/core/checks/security/base.py +348 -0
- django/core/checks/security/csrf.py +65 -0
- django/core/checks/security/sessions.py +98 -0
- django/core/checks/templates.py +12 -0
- django/core/checks/translation.py +66 -0
- django/core/checks/urls.py +158 -0
- django/core/exceptions.py +265 -0
- django/core/files/__init__.py +3 -0
- django/core/files/base.py +161 -0
- django/core/files/images.py +89 -0
- django/core/files/locks.py +128 -0
- django/core/files/move.py +92 -0
- django/core/files/storage/__init__.py +27 -0
- django/core/files/storage/base.py +206 -0
- django/core/files/storage/filesystem.py +222 -0
- django/core/files/storage/handler.py +47 -0
- django/core/files/storage/memory.py +293 -0
- django/core/files/storage/mixins.py +15 -0
- django/core/files/temp.py +79 -0
- django/core/files/uploadedfile.py +155 -0
- django/core/files/uploadhandler.py +268 -0
- django/core/files/utils.py +77 -0
- django/core/handlers/__init__.py +0 -0
- django/core/handlers/asgi.py +410 -0
- django/core/handlers/base.py +391 -0
- django/core/handlers/exception.py +187 -0
- django/core/handlers/rsgi.py +297 -0
- django/core/handlers/wsgi.py +207 -0
- django/core/mail/__init__.py +402 -0
- django/core/mail/backends/__init__.py +1 -0
- django/core/mail/backends/base.py +127 -0
- django/core/mail/backends/console.py +46 -0
- django/core/mail/backends/dummy.py +10 -0
- django/core/mail/backends/filebased.py +97 -0
- django/core/mail/backends/locmem.py +37 -0
- django/core/mail/backends/smtp.py +256 -0
- django/core/mail/deprecation.py +56 -0
- django/core/mail/exceptions.py +18 -0
- django/core/mail/handler.py +78 -0
- django/core/mail/message.py +707 -0
- django/core/mail/utils.py +22 -0
- django/core/management/__init__.py +440 -0
- django/core/management/base.py +718 -0
- django/core/management/color.py +120 -0
- django/core/management/commands/__init__.py +0 -0
- django/core/management/commands/check.py +88 -0
- django/core/management/commands/compilemessages.py +195 -0
- django/core/management/commands/createcachetable.py +149 -0
- django/core/management/commands/dbshell.py +49 -0
- django/core/management/commands/diffsettings.py +92 -0
- django/core/management/commands/dumpdata.py +286 -0
- django/core/management/commands/flush.py +91 -0
- django/core/management/commands/inspectdb.py +427 -0
- django/core/management/commands/listurls.py +175 -0
- django/core/management/commands/loaddata.py +436 -0
- django/core/management/commands/makemessages.py +791 -0
- django/core/management/commands/makemigrations.py +518 -0
- django/core/management/commands/migrate.py +511 -0
- django/core/management/commands/optimizemigration.py +129 -0
- django/core/management/commands/runserver.py +202 -0
- django/core/management/commands/sendtestemail.py +57 -0
- django/core/management/commands/shell.py +284 -0
- django/core/management/commands/showmigrations.py +177 -0
- django/core/management/commands/sqlflush.py +30 -0
- django/core/management/commands/sqlmigrate.py +83 -0
- django/core/management/commands/sqlsequencereset.py +32 -0
- django/core/management/commands/squashmigrations.py +253 -0
- django/core/management/commands/startapp.py +15 -0
- django/core/management/commands/startproject.py +21 -0
- django/core/management/commands/test.py +66 -0
- django/core/management/commands/testserver.py +65 -0
- django/core/management/sql.py +59 -0
- django/core/management/templates.py +405 -0
- django/core/management/utils.py +181 -0
- django/core/paginator.py +456 -0
- django/core/rsgi.py +19 -0
- django/core/serializers/__init__.py +255 -0
- django/core/serializers/base.py +416 -0
- django/core/serializers/json.py +114 -0
- django/core/serializers/jsonl.py +68 -0
- django/core/serializers/python.py +236 -0
- django/core/serializers/pyyaml.py +81 -0
- django/core/serializers/xml_serializer.py +580 -0
- django/core/servers/__init__.py +0 -0
- django/core/servers/basehttp.py +277 -0
- django/core/signals.py +6 -0
- django/core/signing.py +318 -0
- django/core/validators.py +754 -0
- django/core/wsgi.py +13 -0
- django/db/__init__.py +90 -0
- django/db/backends/__init__.py +0 -0
- django/db/backends/base/__init__.py +0 -0
- django/db/backends/base/base.py +1193 -0
- django/db/backends/base/client.py +31 -0
- django/db/backends/base/creation.py +409 -0
- django/db/backends/base/features.py +495 -0
- django/db/backends/base/introspection.py +228 -0
- django/db/backends/base/operations.py +918 -0
- django/db/backends/base/schema.py +2136 -0
- django/db/backends/base/validation.py +32 -0
- django/db/backends/ddl_references.py +270 -0
- django/db/backends/dummy/__init__.py +0 -0
- django/db/backends/dummy/base.py +76 -0
- django/db/backends/dummy/features.py +6 -0
- django/db/backends/mysql/__init__.py +0 -0
- django/db/backends/mysql/base.py +442 -0
- django/db/backends/mysql/client.py +72 -0
- django/db/backends/mysql/compiler.py +69 -0
- django/db/backends/mysql/creation.py +100 -0
- django/db/backends/mysql/features.py +248 -0
- django/db/backends/mysql/introspection.py +375 -0
- django/db/backends/mysql/operations.py +419 -0
- django/db/backends/mysql/schema.py +249 -0
- django/db/backends/mysql/validation.py +77 -0
- django/db/backends/oracle/__init__.py +0 -0
- django/db/backends/oracle/base.py +684 -0
- django/db/backends/oracle/client.py +27 -0
- django/db/backends/oracle/creation.py +471 -0
- django/db/backends/oracle/features.py +261 -0
- django/db/backends/oracle/functions.py +26 -0
- django/db/backends/oracle/introspection.py +429 -0
- django/db/backends/oracle/operations.py +703 -0
- django/db/backends/oracle/schema.py +256 -0
- django/db/backends/oracle/utils.py +99 -0
- django/db/backends/oracle/validation.py +22 -0
- django/db/backends/postgresql/__init__.py +0 -0
- django/db/backends/postgresql/base.py +895 -0
- django/db/backends/postgresql/client.py +64 -0
- django/db/backends/postgresql/compiler.py +61 -0
- django/db/backends/postgresql/creation.py +91 -0
- django/db/backends/postgresql/features.py +199 -0
- django/db/backends/postgresql/introspection.py +325 -0
- django/db/backends/postgresql/operations.py +412 -0
- django/db/backends/postgresql/psycopg_any.py +120 -0
- django/db/backends/postgresql/schema.py +380 -0
- django/db/backends/signals.py +3 -0
- django/db/backends/sqlite3/__init__.py +0 -0
- django/db/backends/sqlite3/_functions.py +565 -0
- django/db/backends/sqlite3/base.py +384 -0
- django/db/backends/sqlite3/client.py +10 -0
- django/db/backends/sqlite3/creation.py +158 -0
- django/db/backends/sqlite3/features.py +177 -0
- django/db/backends/sqlite3/introspection.py +456 -0
- django/db/backends/sqlite3/operations.py +413 -0
- django/db/backends/sqlite3/schema.py +502 -0
- django/db/backends/utils.py +470 -0
- django/db/migrations/__init__.py +2 -0
- django/db/migrations/autodetector.py +2049 -0
- django/db/migrations/exceptions.py +60 -0
- django/db/migrations/executor.py +413 -0
- django/db/migrations/graph.py +336 -0
- django/db/migrations/loader.py +433 -0
- django/db/migrations/migration.py +239 -0
- django/db/migrations/operations/__init__.py +46 -0
- django/db/migrations/operations/base.py +177 -0
- django/db/migrations/operations/fields.py +358 -0
- django/db/migrations/operations/models.py +1288 -0
- django/db/migrations/operations/special.py +218 -0
- django/db/migrations/optimizer.py +69 -0
- django/db/migrations/questioner.py +347 -0
- django/db/migrations/recorder.py +111 -0
- django/db/migrations/serializer.py +434 -0
- django/db/migrations/state.py +1020 -0
- django/db/migrations/utils.py +129 -0
- django/db/migrations/writer.py +323 -0
- django/db/models/__init__.py +138 -0
- django/db/models/aggregates.py +468 -0
- django/db/models/base.py +2948 -0
- django/db/models/constants.py +13 -0
- django/db/models/constraints.py +699 -0
- django/db/models/deletion.py +803 -0
- django/db/models/enums.py +79 -0
- django/db/models/expressions.py +2235 -0
- django/db/models/fetch_modes.py +61 -0
- django/db/models/fields/__init__.py +2978 -0
- django/db/models/fields/composite.py +177 -0
- django/db/models/fields/files.py +541 -0
- django/db/models/fields/generated.py +208 -0
- django/db/models/fields/json.py +805 -0
- django/db/models/fields/mixins.py +66 -0
- django/db/models/fields/proxy.py +18 -0
- django/db/models/fields/related.py +2211 -0
- django/db/models/fields/related_descriptors.py +2203 -0
- django/db/models/fields/related_lookups.py +153 -0
- django/db/models/fields/reverse_related.py +408 -0
- django/db/models/fields/tuple_lookups.py +425 -0
- django/db/models/functions/__init__.py +197 -0
- django/db/models/functions/comparison.py +173 -0
- django/db/models/functions/datetime.py +442 -0
- django/db/models/functions/json.py +104 -0
- django/db/models/functions/math.py +214 -0
- django/db/models/functions/mixins.py +62 -0
- django/db/models/functions/text.py +377 -0
- django/db/models/functions/uuid.py +94 -0
- django/db/models/functions/window.py +120 -0
- django/db/models/indexes.py +391 -0
- django/db/models/lookups.py +833 -0
- django/db/models/manager.py +213 -0
- django/db/models/options.py +1052 -0
- django/db/models/query.py +4121 -0
- django/db/models/query_utils.py +579 -0
- django/db/models/signals.py +54 -0
- django/db/models/sql/__init__.py +6 -0
- django/db/models/sql/compiler.py +2498 -0
- django/db/models/sql/constants.py +26 -0
- django/db/models/sql/datastructures.py +222 -0
- django/db/models/sql/query.py +2981 -0
- django/db/models/sql/subqueries.py +177 -0
- django/db/models/sql/where.py +344 -0
- django/db/models/utils.py +81 -0
- django/db/transaction.py +510 -0
- django/db/utils.py +296 -0
- django/dispatch/__init__.py +10 -0
- django/dispatch/dispatcher.py +626 -0
- django/dispatch/license.txt +36 -0
- django/forms/__init__.py +11 -0
- django/forms/boundfield.py +370 -0
- django/forms/fields.py +1403 -0
- django/forms/forms.py +439 -0
- django/forms/formsets.py +585 -0
- django/forms/jinja2/django/forms/attrs.html +1 -0
- django/forms/jinja2/django/forms/div.html +15 -0
- django/forms/jinja2/django/forms/errors/dict/default.html +1 -0
- django/forms/jinja2/django/forms/errors/dict/text.txt +3 -0
- django/forms/jinja2/django/forms/errors/dict/ul.html +1 -0
- django/forms/jinja2/django/forms/errors/list/default.html +1 -0
- django/forms/jinja2/django/forms/errors/list/text.txt +2 -0
- django/forms/jinja2/django/forms/errors/list/ul.html +1 -0
- django/forms/jinja2/django/forms/field.html +10 -0
- django/forms/jinja2/django/forms/formsets/div.html +1 -0
- django/forms/jinja2/django/forms/formsets/p.html +1 -0
- django/forms/jinja2/django/forms/formsets/table.html +1 -0
- django/forms/jinja2/django/forms/formsets/ul.html +1 -0
- django/forms/jinja2/django/forms/label.html +1 -0
- django/forms/jinja2/django/forms/p.html +20 -0
- django/forms/jinja2/django/forms/table.html +29 -0
- django/forms/jinja2/django/forms/ul.html +24 -0
- django/forms/jinja2/django/forms/widgets/attrs.html +1 -0
- django/forms/jinja2/django/forms/widgets/checkbox.html +1 -0
- django/forms/jinja2/django/forms/widgets/checkbox_option.html +1 -0
- django/forms/jinja2/django/forms/widgets/checkbox_select.html +1 -0
- django/forms/jinja2/django/forms/widgets/clearable_file_input.html +5 -0
- django/forms/jinja2/django/forms/widgets/color.html +1 -0
- django/forms/jinja2/django/forms/widgets/date.html +1 -0
- django/forms/jinja2/django/forms/widgets/datetime.html +1 -0
- django/forms/jinja2/django/forms/widgets/email.html +1 -0
- django/forms/jinja2/django/forms/widgets/file.html +1 -0
- django/forms/jinja2/django/forms/widgets/hidden.html +1 -0
- django/forms/jinja2/django/forms/widgets/input.html +1 -0
- django/forms/jinja2/django/forms/widgets/input_option.html +1 -0
- django/forms/jinja2/django/forms/widgets/multiple_hidden.html +1 -0
- django/forms/jinja2/django/forms/widgets/multiple_input.html +5 -0
- django/forms/jinja2/django/forms/widgets/multiwidget.html +1 -0
- django/forms/jinja2/django/forms/widgets/number.html +1 -0
- django/forms/jinja2/django/forms/widgets/password.html +1 -0
- django/forms/jinja2/django/forms/widgets/radio.html +1 -0
- django/forms/jinja2/django/forms/widgets/radio_option.html +1 -0
- django/forms/jinja2/django/forms/widgets/search.html +1 -0
- django/forms/jinja2/django/forms/widgets/select.html +5 -0
- django/forms/jinja2/django/forms/widgets/select_date.html +1 -0
- django/forms/jinja2/django/forms/widgets/select_option.html +1 -0
- django/forms/jinja2/django/forms/widgets/splitdatetime.html +1 -0
- django/forms/jinja2/django/forms/widgets/splithiddendatetime.html +1 -0
- django/forms/jinja2/django/forms/widgets/tel.html +1 -0
- django/forms/jinja2/django/forms/widgets/text.html +1 -0
- django/forms/jinja2/django/forms/widgets/textarea.html +2 -0
- django/forms/jinja2/django/forms/widgets/time.html +1 -0
- django/forms/jinja2/django/forms/widgets/url.html +1 -0
- django/forms/models.py +1727 -0
- django/forms/renderers.py +76 -0
- django/forms/templates/django/forms/attrs.html +1 -0
- django/forms/templates/django/forms/div.html +15 -0
- django/forms/templates/django/forms/errors/dict/default.html +1 -0
- django/forms/templates/django/forms/errors/dict/text.txt +3 -0
- django/forms/templates/django/forms/errors/dict/ul.html +1 -0
- django/forms/templates/django/forms/errors/list/default.html +1 -0
- django/forms/templates/django/forms/errors/list/text.txt +2 -0
- django/forms/templates/django/forms/errors/list/ul.html +1 -0
- django/forms/templates/django/forms/field.html +9 -0
- django/forms/templates/django/forms/formsets/div.html +1 -0
- django/forms/templates/django/forms/formsets/p.html +1 -0
- django/forms/templates/django/forms/formsets/table.html +1 -0
- django/forms/templates/django/forms/formsets/ul.html +1 -0
- django/forms/templates/django/forms/label.html +1 -0
- django/forms/templates/django/forms/p.html +20 -0
- django/forms/templates/django/forms/table.html +29 -0
- django/forms/templates/django/forms/ul.html +24 -0
- django/forms/templates/django/forms/widgets/attrs.html +1 -0
- django/forms/templates/django/forms/widgets/checkbox.html +1 -0
- django/forms/templates/django/forms/widgets/checkbox_option.html +1 -0
- django/forms/templates/django/forms/widgets/checkbox_select.html +1 -0
- django/forms/templates/django/forms/widgets/clearable_file_input.html +5 -0
- django/forms/templates/django/forms/widgets/color.html +1 -0
- django/forms/templates/django/forms/widgets/date.html +1 -0
- django/forms/templates/django/forms/widgets/datetime.html +1 -0
- django/forms/templates/django/forms/widgets/email.html +1 -0
- django/forms/templates/django/forms/widgets/file.html +1 -0
- django/forms/templates/django/forms/widgets/hidden.html +1 -0
- django/forms/templates/django/forms/widgets/input.html +1 -0
- django/forms/templates/django/forms/widgets/input_option.html +1 -0
- django/forms/templates/django/forms/widgets/multiple_hidden.html +1 -0
- django/forms/templates/django/forms/widgets/multiple_input.html +5 -0
- django/forms/templates/django/forms/widgets/multiwidget.html +1 -0
- django/forms/templates/django/forms/widgets/number.html +1 -0
- django/forms/templates/django/forms/widgets/password.html +1 -0
- django/forms/templates/django/forms/widgets/radio.html +1 -0
- django/forms/templates/django/forms/widgets/radio_option.html +1 -0
- django/forms/templates/django/forms/widgets/search.html +1 -0
- django/forms/templates/django/forms/widgets/select.html +5 -0
- django/forms/templates/django/forms/widgets/select_date.html +1 -0
- django/forms/templates/django/forms/widgets/select_option.html +1 -0
- django/forms/templates/django/forms/widgets/splitdatetime.html +1 -0
- django/forms/templates/django/forms/widgets/splithiddendatetime.html +1 -0
- django/forms/templates/django/forms/widgets/tel.html +1 -0
- django/forms/templates/django/forms/widgets/text.html +1 -0
- django/forms/templates/django/forms/widgets/textarea.html +2 -0
- django/forms/templates/django/forms/widgets/time.html +1 -0
- django/forms/templates/django/forms/widgets/url.html +1 -0
- django/forms/utils.py +246 -0
- django/forms/widgets.py +1325 -0
- django/http/__init__.py +52 -0
- django/http/cookie.py +23 -0
- django/http/multipartparser.py +761 -0
- django/http/request.py +884 -0
- django/http/response.py +803 -0
- django/middleware/__init__.py +64 -0
- django/middleware/cache.py +429 -0
- django/middleware/clickjacking.py +69 -0
- django/middleware/common.py +245 -0
- django/middleware/csp.py +71 -0
- django/middleware/csrf.py +515 -0
- django/middleware/gzip.py +87 -0
- django/middleware/http.py +62 -0
- django/middleware/locale.py +102 -0
- django/middleware/security.py +84 -0
- django/shortcuts.py +214 -0
- django/tasks/__init__.py +45 -0
- django/tasks/backends/__init__.py +0 -0
- django/tasks/backends/base.py +112 -0
- django/tasks/backends/dummy.py +64 -0
- django/tasks/backends/immediate.py +94 -0
- django/tasks/base.py +272 -0
- django/tasks/checks.py +11 -0
- django/tasks/exceptions.py +21 -0
- django/tasks/signals.py +65 -0
- django/template/__init__.py +75 -0
- django/template/autoreload.py +61 -0
- django/template/backends/__init__.py +0 -0
- django/template/backends/base.py +84 -0
- django/template/backends/django.py +182 -0
- django/template/backends/dummy.py +51 -0
- django/template/backends/jinja2.py +125 -0
- django/template/backends/utils.py +15 -0
- django/template/base.py +1352 -0
- django/template/context.py +307 -0
- django/template/context_processors.py +98 -0
- django/template/defaultfilters.py +997 -0
- django/template/defaulttags.py +1702 -0
- django/template/engine.py +248 -0
- django/template/exceptions.py +44 -0
- django/template/library.py +501 -0
- django/template/loader.py +66 -0
- django/template/loader_tags.py +370 -0
- django/template/loaders/__init__.py +0 -0
- django/template/loaders/app_directories.py +13 -0
- django/template/loaders/base.py +51 -0
- django/template/loaders/cached.py +100 -0
- django/template/loaders/filesystem.py +45 -0
- django/template/loaders/locmem.py +26 -0
- django/template/response.py +164 -0
- django/template/smartif.py +220 -0
- django/template/utils.py +109 -0
- django/templatetags/__init__.py +0 -0
- django/templatetags/cache.py +100 -0
- django/templatetags/i18n.py +616 -0
- django/templatetags/l10n.py +60 -0
- django/templatetags/static.py +179 -0
- django/templatetags/tz.py +200 -0
- django/test/__init__.py +38 -0
- django/test/client.py +1861 -0
- django/test/html.py +273 -0
- django/test/runner.py +1351 -0
- django/test/signals.py +261 -0
- django/test/testcases.py +1897 -0
- django/test/utils.py +1072 -0
- django/urls/__init__.py +53 -0
- django/urls/base.py +208 -0
- django/urls/conf.py +97 -0
- django/urls/converters.py +68 -0
- django/urls/exceptions.py +9 -0
- django/urls/resolvers.py +843 -0
- django/urls/utils.py +211 -0
- django/utils/__init__.py +0 -0
- django/utils/_os.py +119 -0
- django/utils/archive.py +262 -0
- django/utils/asyncio.py +58 -0
- django/utils/autoreload.py +693 -0
- django/utils/cache.py +455 -0
- django/utils/choices.py +116 -0
- django/utils/connection.py +86 -0
- django/utils/copy.py +17 -0
- django/utils/crypto.py +93 -0
- django/utils/csp.py +146 -0
- django/utils/datastructures.py +365 -0
- django/utils/dateformat.py +335 -0
- django/utils/dateparse.py +154 -0
- django/utils/dates.py +79 -0
- django/utils/deconstruct.py +61 -0
- django/utils/decorators.py +228 -0
- django/utils/deprecation.py +420 -0
- django/utils/duration.py +46 -0
- django/utils/encoding.py +262 -0
- django/utils/feedgenerator.py +525 -0
- django/utils/formats.py +305 -0
- django/utils/functional.py +468 -0
- django/utils/hashable.py +26 -0
- django/utils/html.py +535 -0
- django/utils/http.py +418 -0
- django/utils/inspect.py +162 -0
- django/utils/ipv6.py +64 -0
- django/utils/json.py +19 -0
- django/utils/log.py +324 -0
- django/utils/lorem_ipsum.py +286 -0
- django/utils/module_loading.py +140 -0
- django/utils/numberformat.py +108 -0
- django/utils/regex_helper.py +354 -0
- django/utils/safestring.py +78 -0
- django/utils/termcolors.py +230 -0
- django/utils/text.py +516 -0
- django/utils/timesince.py +143 -0
- django/utils/timezone.py +259 -0
- django/utils/translation/__init__.py +302 -0
- django/utils/translation/reloader.py +36 -0
- django/utils/translation/template.py +246 -0
- django/utils/translation/trans_null.py +67 -0
- django/utils/translation/trans_real.py +665 -0
- django/utils/tree.py +126 -0
- django/utils/version.py +267 -0
- django/utils/warnings.py +12 -0
- django/utils/xmlutils.py +40 -0
- django/views/__init__.py +3 -0
- django/views/csrf.py +81 -0
- django/views/debug.py +705 -0
- django/views/decorators/__init__.py +0 -0
- django/views/decorators/cache.py +83 -0
- django/views/decorators/clickjacking.py +89 -0
- django/views/decorators/common.py +26 -0
- django/views/decorators/csp.py +40 -0
- django/views/decorators/csrf.py +68 -0
- django/views/decorators/debug.py +146 -0
- django/views/decorators/gzip.py +5 -0
- django/views/decorators/http.py +168 -0
- django/views/decorators/vary.py +43 -0
- django/views/defaults.py +150 -0
- django/views/generic/__init__.py +39 -0
- django/views/generic/base.py +295 -0
- django/views/generic/dates.py +823 -0
- django/views/generic/detail.py +191 -0
- django/views/generic/edit.py +274 -0
- django/views/generic/list.py +224 -0
- django/views/i18n.py +253 -0
- django/views/static.py +122 -0
- django/views/templates/csrf_403.html +86 -0
- django/views/templates/default_urlconf.html +244 -0
- django/views/templates/directory_index.html +22 -0
- django/views/templates/i18n_catalog.js +102 -0
- django/views/templates/technical_404.html +87 -0
- django/views/templates/technical_500.html +513 -0
- django/views/templates/technical_500.txt +70 -0
- django_asyncio-6.2.0.dist-info/METADATA +212 -0
- django_asyncio-6.2.0.dist-info/RECORD +3700 -0
- django_asyncio-6.2.0.dist-info/WHEEL +5 -0
- django_asyncio-6.2.0.dist-info/entry_points.txt +3 -0
- django_asyncio-6.2.0.dist-info/licenses/AUTHORS +1190 -0
- django_asyncio-6.2.0.dist-info/licenses/LICENSE +27 -0
- django_asyncio-6.2.0.dist-info/licenses/LICENSE.python +288 -0
- django_asyncio-6.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,2211 @@
|
|
|
1
|
+
import functools
|
|
2
|
+
import inspect
|
|
3
|
+
from functools import cached_property, partial
|
|
4
|
+
|
|
5
|
+
from django import forms
|
|
6
|
+
from django.apps import apps
|
|
7
|
+
from django.conf import SettingsReference, settings
|
|
8
|
+
from django.core import checks, exceptions
|
|
9
|
+
from django.db import connection, connections, router
|
|
10
|
+
from django.db.backends import utils
|
|
11
|
+
from django.db.models import NOT_PROVIDED, Q
|
|
12
|
+
from django.db.models.constants import LOOKUP_SEP
|
|
13
|
+
from django.db.models.deletion import (
|
|
14
|
+
CASCADE,
|
|
15
|
+
DB_CASCADE,
|
|
16
|
+
DB_SET_DEFAULT,
|
|
17
|
+
DB_SET_NULL,
|
|
18
|
+
DO_NOTHING,
|
|
19
|
+
SET_DEFAULT,
|
|
20
|
+
SET_NULL,
|
|
21
|
+
DatabaseOnDelete,
|
|
22
|
+
)
|
|
23
|
+
from django.db.models.query_utils import PathInfo
|
|
24
|
+
from django.db.models.utils import make_model_tuple
|
|
25
|
+
from django.utils.translation import gettext_lazy as _
|
|
26
|
+
|
|
27
|
+
from . import Field
|
|
28
|
+
from .mixins import FieldCacheMixin
|
|
29
|
+
from .related_descriptors import (
|
|
30
|
+
ForeignKeyDeferredAttribute,
|
|
31
|
+
ForwardManyToOneDescriptor,
|
|
32
|
+
ForwardOneToOneDescriptor,
|
|
33
|
+
ManyToManyDescriptor,
|
|
34
|
+
ReverseManyToOneDescriptor,
|
|
35
|
+
ReverseOneToOneDescriptor,
|
|
36
|
+
)
|
|
37
|
+
from .related_lookups import (
|
|
38
|
+
RelatedExact,
|
|
39
|
+
RelatedGreaterThan,
|
|
40
|
+
RelatedGreaterThanOrEqual,
|
|
41
|
+
RelatedIn,
|
|
42
|
+
RelatedIsNull,
|
|
43
|
+
RelatedLessThan,
|
|
44
|
+
RelatedLessThanOrEqual,
|
|
45
|
+
)
|
|
46
|
+
from .reverse_related import ForeignObjectRel, ManyToManyRel, ManyToOneRel, OneToOneRel
|
|
47
|
+
|
|
48
|
+
RECURSIVE_RELATIONSHIP_CONSTANT = "self"
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def resolve_relation(scope_model, relation):
|
|
52
|
+
"""
|
|
53
|
+
Transform relation into a model or fully-qualified model string of the form
|
|
54
|
+
"app_label.ModelName", relative to scope_model.
|
|
55
|
+
|
|
56
|
+
The relation argument can be:
|
|
57
|
+
* RECURSIVE_RELATIONSHIP_CONSTANT, i.e. the string "self", in which case
|
|
58
|
+
the model argument will be returned.
|
|
59
|
+
* A bare model name without an app_label, in which case scope_model's
|
|
60
|
+
app_label will be prepended.
|
|
61
|
+
* An "app_label.ModelName" string.
|
|
62
|
+
* A model class, which will be returned unchanged.
|
|
63
|
+
"""
|
|
64
|
+
# Check for recursive relations
|
|
65
|
+
if relation == RECURSIVE_RELATIONSHIP_CONSTANT:
|
|
66
|
+
relation = scope_model
|
|
67
|
+
|
|
68
|
+
# Look for an "app.Model" relation
|
|
69
|
+
if isinstance(relation, str):
|
|
70
|
+
if "." not in relation:
|
|
71
|
+
relation = "%s.%s" % (scope_model._meta.app_label, relation)
|
|
72
|
+
|
|
73
|
+
return relation
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def lazy_related_operation(function, model, *related_models, **kwargs):
|
|
77
|
+
"""
|
|
78
|
+
Schedule `function` to be called once `model` and all `related_models`
|
|
79
|
+
have been imported and registered with the app registry. `function` will
|
|
80
|
+
be called with the newly-loaded model classes as its positional arguments,
|
|
81
|
+
plus any optional keyword arguments.
|
|
82
|
+
|
|
83
|
+
The `model` argument must be a model class. Each subsequent positional
|
|
84
|
+
argument is another model, or a reference to another model - see
|
|
85
|
+
`resolve_relation()` for the various forms these may take. Any relative
|
|
86
|
+
references will be resolved relative to `model`.
|
|
87
|
+
|
|
88
|
+
This is a convenience wrapper for `Apps.lazy_model_operation` - the app
|
|
89
|
+
registry model used is the one found in `model._meta.apps`.
|
|
90
|
+
"""
|
|
91
|
+
models = [model] + [resolve_relation(model, rel) for rel in related_models]
|
|
92
|
+
model_keys = (make_model_tuple(m) for m in models)
|
|
93
|
+
apps = model._meta.apps
|
|
94
|
+
return apps.lazy_model_operation(partial(function, **kwargs), *model_keys)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
class RelatedField(FieldCacheMixin, Field):
|
|
98
|
+
"""Base class that all relational fields inherit from."""
|
|
99
|
+
|
|
100
|
+
# Field flags
|
|
101
|
+
one_to_many = False
|
|
102
|
+
one_to_one = False
|
|
103
|
+
many_to_many = False
|
|
104
|
+
many_to_one = False
|
|
105
|
+
|
|
106
|
+
def __init__(
|
|
107
|
+
self,
|
|
108
|
+
related_name=None,
|
|
109
|
+
related_query_name=None,
|
|
110
|
+
limit_choices_to=None,
|
|
111
|
+
**kwargs,
|
|
112
|
+
):
|
|
113
|
+
self._related_name = related_name
|
|
114
|
+
self._related_query_name = related_query_name
|
|
115
|
+
self._limit_choices_to = limit_choices_to
|
|
116
|
+
super().__init__(**kwargs)
|
|
117
|
+
|
|
118
|
+
@cached_property
|
|
119
|
+
def related_model(self):
|
|
120
|
+
# Can't cache this property until all the models are loaded.
|
|
121
|
+
apps.check_models_ready()
|
|
122
|
+
return self.remote_field.model
|
|
123
|
+
|
|
124
|
+
def check(self, **kwargs):
|
|
125
|
+
return [
|
|
126
|
+
*super().check(**kwargs),
|
|
127
|
+
*self._check_related_name_is_valid(),
|
|
128
|
+
*self._check_related_query_name_is_valid(),
|
|
129
|
+
*self._check_relation_model_exists(),
|
|
130
|
+
*self._check_referencing_to_swapped_model(),
|
|
131
|
+
*self._check_clashes(),
|
|
132
|
+
]
|
|
133
|
+
|
|
134
|
+
def _check_related_name_is_valid(self):
|
|
135
|
+
import keyword
|
|
136
|
+
|
|
137
|
+
related_name = self.remote_field.related_name
|
|
138
|
+
if related_name is None:
|
|
139
|
+
return []
|
|
140
|
+
is_valid_id = (
|
|
141
|
+
not keyword.iskeyword(related_name) and related_name.isidentifier()
|
|
142
|
+
)
|
|
143
|
+
if not (is_valid_id or related_name.endswith("+")):
|
|
144
|
+
return [
|
|
145
|
+
checks.Error(
|
|
146
|
+
"The name '%s' is invalid related_name for field %s.%s"
|
|
147
|
+
% (
|
|
148
|
+
self.remote_field.related_name,
|
|
149
|
+
self.model._meta.object_name,
|
|
150
|
+
self.name,
|
|
151
|
+
),
|
|
152
|
+
hint=(
|
|
153
|
+
"Related name must be a valid Python identifier or end with a "
|
|
154
|
+
"'+'"
|
|
155
|
+
),
|
|
156
|
+
obj=self,
|
|
157
|
+
id="fields.E306",
|
|
158
|
+
)
|
|
159
|
+
]
|
|
160
|
+
return []
|
|
161
|
+
|
|
162
|
+
def _check_related_query_name_is_valid(self):
|
|
163
|
+
if self.remote_field.hidden:
|
|
164
|
+
return []
|
|
165
|
+
rel_query_name = self.related_query_name()
|
|
166
|
+
errors = []
|
|
167
|
+
if rel_query_name.endswith("_"):
|
|
168
|
+
errors.append(
|
|
169
|
+
checks.Error(
|
|
170
|
+
"Reverse query name '%s' must not end with an underscore."
|
|
171
|
+
% rel_query_name,
|
|
172
|
+
hint=(
|
|
173
|
+
"Add or change a related_name or related_query_name "
|
|
174
|
+
"argument for this field."
|
|
175
|
+
),
|
|
176
|
+
obj=self,
|
|
177
|
+
id="fields.E308",
|
|
178
|
+
)
|
|
179
|
+
)
|
|
180
|
+
if LOOKUP_SEP in rel_query_name:
|
|
181
|
+
errors.append(
|
|
182
|
+
checks.Error(
|
|
183
|
+
"Reverse query name '%s' must not contain '%s'."
|
|
184
|
+
% (rel_query_name, LOOKUP_SEP),
|
|
185
|
+
hint=(
|
|
186
|
+
"Add or change a related_name or related_query_name "
|
|
187
|
+
"argument for this field."
|
|
188
|
+
),
|
|
189
|
+
obj=self,
|
|
190
|
+
id="fields.E309",
|
|
191
|
+
)
|
|
192
|
+
)
|
|
193
|
+
return errors
|
|
194
|
+
|
|
195
|
+
def _check_relation_model_exists(self):
|
|
196
|
+
rel_is_missing = self.remote_field.model not in self.opts.apps.get_models(
|
|
197
|
+
include_auto_created=True
|
|
198
|
+
)
|
|
199
|
+
rel_is_string = isinstance(self.remote_field.model, str)
|
|
200
|
+
model_name = (
|
|
201
|
+
self.remote_field.model
|
|
202
|
+
if rel_is_string
|
|
203
|
+
else self.remote_field.model._meta.object_name
|
|
204
|
+
)
|
|
205
|
+
if rel_is_missing and (
|
|
206
|
+
rel_is_string or not self.remote_field.model._meta.swapped
|
|
207
|
+
):
|
|
208
|
+
return [
|
|
209
|
+
checks.Error(
|
|
210
|
+
"Field defines a relation with model '%s', which is either "
|
|
211
|
+
"not installed, or is abstract." % model_name,
|
|
212
|
+
obj=self,
|
|
213
|
+
id="fields.E300",
|
|
214
|
+
)
|
|
215
|
+
]
|
|
216
|
+
return []
|
|
217
|
+
|
|
218
|
+
def _check_referencing_to_swapped_model(self):
|
|
219
|
+
if (
|
|
220
|
+
self.remote_field.model not in self.opts.apps.get_models()
|
|
221
|
+
and not isinstance(self.remote_field.model, str)
|
|
222
|
+
and self.remote_field.model._meta.swapped
|
|
223
|
+
):
|
|
224
|
+
return [
|
|
225
|
+
checks.Error(
|
|
226
|
+
"Field defines a relation with the model '%s', which has "
|
|
227
|
+
"been swapped out." % self.remote_field.model._meta.label,
|
|
228
|
+
hint="Update the relation to point at 'settings.%s'."
|
|
229
|
+
% self.remote_field.model._meta.swappable,
|
|
230
|
+
obj=self,
|
|
231
|
+
id="fields.E301",
|
|
232
|
+
)
|
|
233
|
+
]
|
|
234
|
+
return []
|
|
235
|
+
|
|
236
|
+
def _check_clashes(self):
|
|
237
|
+
"""Check accessor and reverse query name clashes."""
|
|
238
|
+
from django.db.models.base import ModelBase
|
|
239
|
+
|
|
240
|
+
errors = []
|
|
241
|
+
opts = self.model._meta
|
|
242
|
+
|
|
243
|
+
# f.remote_field.model may be a string instead of a model. Skip if
|
|
244
|
+
# model name is not resolved.
|
|
245
|
+
if not isinstance(self.remote_field.model, ModelBase):
|
|
246
|
+
return []
|
|
247
|
+
|
|
248
|
+
# Consider that we are checking field `Model.foreign` and the models
|
|
249
|
+
# are:
|
|
250
|
+
#
|
|
251
|
+
# class Target(models.Model):
|
|
252
|
+
# model = models.IntegerField()
|
|
253
|
+
# model_set = models.IntegerField()
|
|
254
|
+
#
|
|
255
|
+
# class Model(models.Model):
|
|
256
|
+
# foreign = models.ForeignKey(Target)
|
|
257
|
+
# m2m = models.ManyToManyField(Target)
|
|
258
|
+
|
|
259
|
+
# rel_opts.object_name == "Target"
|
|
260
|
+
rel_opts = self.remote_field.model._meta
|
|
261
|
+
# If the field doesn't install a backward relation on the target model
|
|
262
|
+
# (so `is_hidden` returns True), then there are no clashes to check
|
|
263
|
+
# and we can skip these fields.
|
|
264
|
+
rel_is_hidden = self.remote_field.hidden
|
|
265
|
+
rel_name = self.remote_field.accessor_name # i. e. "model_set"
|
|
266
|
+
rel_query_name = self.related_query_name() # i. e. "model"
|
|
267
|
+
# i.e. "app_label.Model.field".
|
|
268
|
+
field_name = "%s.%s" % (opts.label, self.name)
|
|
269
|
+
|
|
270
|
+
# Check clashes between accessor or reverse query name of `field`
|
|
271
|
+
# and any other field name -- i.e. accessor for Model.foreign is
|
|
272
|
+
# model_set and it clashes with Target.model_set.
|
|
273
|
+
potential_clashes = rel_opts.fields + rel_opts.many_to_many
|
|
274
|
+
for clash_field in potential_clashes:
|
|
275
|
+
if not rel_is_hidden and clash_field.name == rel_name:
|
|
276
|
+
clash_name = f"{rel_opts.label}.{clash_field.name}"
|
|
277
|
+
errors.append(
|
|
278
|
+
checks.Error(
|
|
279
|
+
f"Reverse accessor '{rel_opts.object_name}.{rel_name}' "
|
|
280
|
+
f"for '{field_name}' clashes with field name "
|
|
281
|
+
f"'{clash_name}'.",
|
|
282
|
+
hint=(
|
|
283
|
+
"Rename field '%s', or add/change a related_name "
|
|
284
|
+
"argument to the definition for field '%s'."
|
|
285
|
+
)
|
|
286
|
+
% (clash_name, field_name),
|
|
287
|
+
obj=self,
|
|
288
|
+
id="fields.E302",
|
|
289
|
+
)
|
|
290
|
+
)
|
|
291
|
+
|
|
292
|
+
if clash_field.name == rel_query_name:
|
|
293
|
+
clash_name = f"{rel_opts.label}.{clash_field.name}"
|
|
294
|
+
errors.append(
|
|
295
|
+
checks.Error(
|
|
296
|
+
"Reverse query name for '%s' clashes with field name '%s'."
|
|
297
|
+
% (field_name, clash_name),
|
|
298
|
+
hint=(
|
|
299
|
+
"Rename field '%s', or add/change a related_name "
|
|
300
|
+
"argument to the definition for field '%s'."
|
|
301
|
+
)
|
|
302
|
+
% (clash_name, field_name),
|
|
303
|
+
obj=self,
|
|
304
|
+
id="fields.E303",
|
|
305
|
+
)
|
|
306
|
+
)
|
|
307
|
+
|
|
308
|
+
# Check clashes between accessors/reverse query names of `field` and
|
|
309
|
+
# any other field accessor -- i. e. Model.foreign accessor clashes with
|
|
310
|
+
# Model.m2m accessor.
|
|
311
|
+
potential_clashes = (r for r in rel_opts.related_objects if r.field is not self)
|
|
312
|
+
for clash_field in potential_clashes:
|
|
313
|
+
if not rel_is_hidden and clash_field.accessor_name == rel_name:
|
|
314
|
+
clash_name = (
|
|
315
|
+
f"{clash_field.related_model._meta.label}.{clash_field.field.name}"
|
|
316
|
+
)
|
|
317
|
+
errors.append(
|
|
318
|
+
checks.Error(
|
|
319
|
+
f"Reverse accessor '{rel_opts.object_name}.{rel_name}' "
|
|
320
|
+
f"for '{field_name}' clashes with reverse accessor for "
|
|
321
|
+
f"'{clash_name}'.",
|
|
322
|
+
hint=(
|
|
323
|
+
"Add or change a related_name argument "
|
|
324
|
+
"to the definition for '%s' or '%s'."
|
|
325
|
+
)
|
|
326
|
+
% (field_name, clash_name),
|
|
327
|
+
obj=self,
|
|
328
|
+
id="fields.E304",
|
|
329
|
+
)
|
|
330
|
+
)
|
|
331
|
+
|
|
332
|
+
if clash_field.accessor_name == rel_query_name:
|
|
333
|
+
clash_name = (
|
|
334
|
+
f"{clash_field.related_model._meta.label}.{clash_field.field.name}"
|
|
335
|
+
)
|
|
336
|
+
errors.append(
|
|
337
|
+
checks.Error(
|
|
338
|
+
"Reverse query name for '%s' clashes with reverse query name "
|
|
339
|
+
"for '%s'." % (field_name, clash_name),
|
|
340
|
+
hint=(
|
|
341
|
+
"Add or change a related_name argument "
|
|
342
|
+
"to the definition for '%s' or '%s'."
|
|
343
|
+
)
|
|
344
|
+
% (field_name, clash_name),
|
|
345
|
+
obj=self,
|
|
346
|
+
id="fields.E305",
|
|
347
|
+
)
|
|
348
|
+
)
|
|
349
|
+
|
|
350
|
+
# Check clash between reverse accessor and manager names on
|
|
351
|
+
# the target model.
|
|
352
|
+
if not rel_is_hidden:
|
|
353
|
+
manager_names = {m.name for m in rel_opts.managers}
|
|
354
|
+
if rel_name in manager_names:
|
|
355
|
+
errors.append(
|
|
356
|
+
checks.Error(
|
|
357
|
+
f"Related name '{rel_name}' for '{field_name}' "
|
|
358
|
+
f"clashes with the name of a model manager.",
|
|
359
|
+
hint=(
|
|
360
|
+
"Rename the model manager or change the related_name "
|
|
361
|
+
"argument in the definition for field '%s'." % field_name
|
|
362
|
+
),
|
|
363
|
+
obj=self,
|
|
364
|
+
id="fields.E348",
|
|
365
|
+
)
|
|
366
|
+
)
|
|
367
|
+
|
|
368
|
+
return errors
|
|
369
|
+
|
|
370
|
+
def db_type(self, connection):
|
|
371
|
+
# By default related field will not have a column as it relates to
|
|
372
|
+
# columns from another table.
|
|
373
|
+
return None
|
|
374
|
+
|
|
375
|
+
def contribute_to_class(self, cls, name, private_only=False, **kwargs):
|
|
376
|
+
super().contribute_to_class(cls, name, private_only=private_only, **kwargs)
|
|
377
|
+
|
|
378
|
+
self.opts = cls._meta
|
|
379
|
+
|
|
380
|
+
if not cls._meta.abstract:
|
|
381
|
+
if self.remote_field.related_name:
|
|
382
|
+
related_name = self.remote_field.related_name
|
|
383
|
+
else:
|
|
384
|
+
related_name = self.opts.default_related_name
|
|
385
|
+
if related_name:
|
|
386
|
+
related_name %= {
|
|
387
|
+
"class": cls.__name__.lower(),
|
|
388
|
+
"model_name": cls._meta.model_name.lower(),
|
|
389
|
+
"app_label": cls._meta.app_label.lower(),
|
|
390
|
+
}
|
|
391
|
+
self.remote_field.related_name = related_name
|
|
392
|
+
|
|
393
|
+
if self.remote_field.related_query_name:
|
|
394
|
+
related_query_name = self.remote_field.related_query_name % {
|
|
395
|
+
"class": cls.__name__.lower(),
|
|
396
|
+
"app_label": cls._meta.app_label.lower(),
|
|
397
|
+
}
|
|
398
|
+
self.remote_field.related_query_name = related_query_name
|
|
399
|
+
|
|
400
|
+
def resolve_related_class(model, related, field):
|
|
401
|
+
field.remote_field.model = related
|
|
402
|
+
field.do_related_class(related, model)
|
|
403
|
+
|
|
404
|
+
lazy_related_operation(
|
|
405
|
+
resolve_related_class, cls, self.remote_field.model, field=self
|
|
406
|
+
)
|
|
407
|
+
|
|
408
|
+
def deconstruct(self):
|
|
409
|
+
name, path, args, kwargs = super().deconstruct()
|
|
410
|
+
if self._limit_choices_to:
|
|
411
|
+
kwargs["limit_choices_to"] = self._limit_choices_to
|
|
412
|
+
if self._related_name is not None:
|
|
413
|
+
kwargs["related_name"] = self._related_name
|
|
414
|
+
if self._related_query_name is not None:
|
|
415
|
+
kwargs["related_query_name"] = self._related_query_name
|
|
416
|
+
return name, path, args, kwargs
|
|
417
|
+
|
|
418
|
+
def get_forward_related_filter(self, obj):
|
|
419
|
+
"""
|
|
420
|
+
Return the keyword arguments that when supplied to
|
|
421
|
+
self.model.object.filter(), would select all instances related through
|
|
422
|
+
this field to the remote obj. This is used to build the querysets
|
|
423
|
+
returned by related descriptors. obj is an instance of
|
|
424
|
+
self.related_field.model.
|
|
425
|
+
"""
|
|
426
|
+
return {
|
|
427
|
+
"%s__%s" % (self.name, rh_field.name): getattr(obj, rh_field.attname)
|
|
428
|
+
for _, rh_field in self.related_fields
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
def get_reverse_related_filter(self, obj):
|
|
432
|
+
"""
|
|
433
|
+
Complement to get_forward_related_filter(). Return the keyword
|
|
434
|
+
arguments that when passed to self.related_field.model.object.filter()
|
|
435
|
+
select all instances of self.related_field.model related through
|
|
436
|
+
this field to obj. obj is an instance of self.model.
|
|
437
|
+
"""
|
|
438
|
+
base_q = Q.create(
|
|
439
|
+
[
|
|
440
|
+
(rh_field.attname, getattr(obj, lh_field.attname))
|
|
441
|
+
for lh_field, rh_field in self.related_fields
|
|
442
|
+
]
|
|
443
|
+
)
|
|
444
|
+
descriptor_filter = self.get_extra_descriptor_filter(obj)
|
|
445
|
+
if isinstance(descriptor_filter, dict):
|
|
446
|
+
return base_q & Q(**descriptor_filter)
|
|
447
|
+
elif descriptor_filter:
|
|
448
|
+
return base_q & descriptor_filter
|
|
449
|
+
return base_q
|
|
450
|
+
|
|
451
|
+
@property
|
|
452
|
+
def swappable_setting(self):
|
|
453
|
+
"""
|
|
454
|
+
Get the setting that this is powered from for swapping, or None
|
|
455
|
+
if it's not swapped in / marked with swappable=False.
|
|
456
|
+
"""
|
|
457
|
+
if self.swappable:
|
|
458
|
+
# Work out string form of "to"
|
|
459
|
+
if isinstance(self.remote_field.model, str):
|
|
460
|
+
to_string = self.remote_field.model
|
|
461
|
+
else:
|
|
462
|
+
to_string = self.remote_field.model._meta.label
|
|
463
|
+
return apps.get_swappable_settings_name(to_string)
|
|
464
|
+
return None
|
|
465
|
+
|
|
466
|
+
def set_attributes_from_rel(self):
|
|
467
|
+
self.name = self.name or (
|
|
468
|
+
self.remote_field.model._meta.model_name
|
|
469
|
+
+ "_"
|
|
470
|
+
+ self.remote_field.model._meta.pk.name
|
|
471
|
+
)
|
|
472
|
+
if self.verbose_name is None:
|
|
473
|
+
self.verbose_name = self.remote_field.model._meta.verbose_name
|
|
474
|
+
self.remote_field.set_field_name()
|
|
475
|
+
|
|
476
|
+
def do_related_class(self, other, cls):
|
|
477
|
+
self.set_attributes_from_rel()
|
|
478
|
+
self.contribute_to_related_class(other, self.remote_field)
|
|
479
|
+
|
|
480
|
+
def get_limit_choices_to(self):
|
|
481
|
+
"""
|
|
482
|
+
Return ``limit_choices_to`` for this model field.
|
|
483
|
+
|
|
484
|
+
If it is a callable, it will be invoked and the result will be
|
|
485
|
+
returned.
|
|
486
|
+
"""
|
|
487
|
+
if callable(self.remote_field.limit_choices_to):
|
|
488
|
+
return self.remote_field.limit_choices_to()
|
|
489
|
+
return self.remote_field.limit_choices_to
|
|
490
|
+
|
|
491
|
+
def formfield(self, **kwargs):
|
|
492
|
+
"""
|
|
493
|
+
Pass ``limit_choices_to`` to the field being constructed.
|
|
494
|
+
|
|
495
|
+
Only passes it if there is a type that supports related fields.
|
|
496
|
+
This is a similar strategy used to pass the ``queryset`` to the field
|
|
497
|
+
being constructed.
|
|
498
|
+
"""
|
|
499
|
+
defaults = {}
|
|
500
|
+
if hasattr(self.remote_field, "get_related_field"):
|
|
501
|
+
# If this is a callable, do not invoke it here. Just pass
|
|
502
|
+
# it in the defaults for when the form class will later be
|
|
503
|
+
# instantiated.
|
|
504
|
+
limit_choices_to = self.remote_field.limit_choices_to
|
|
505
|
+
defaults.update(
|
|
506
|
+
{
|
|
507
|
+
"limit_choices_to": limit_choices_to,
|
|
508
|
+
}
|
|
509
|
+
)
|
|
510
|
+
defaults.update(kwargs)
|
|
511
|
+
return super().formfield(**defaults)
|
|
512
|
+
|
|
513
|
+
def related_query_name(self):
|
|
514
|
+
"""
|
|
515
|
+
Define the name that can be used to identify this related object in a
|
|
516
|
+
table-spanning query.
|
|
517
|
+
"""
|
|
518
|
+
return (
|
|
519
|
+
self.remote_field.related_query_name
|
|
520
|
+
or self.remote_field.related_name
|
|
521
|
+
or self.opts.model_name
|
|
522
|
+
)
|
|
523
|
+
|
|
524
|
+
@property
|
|
525
|
+
def target_field(self):
|
|
526
|
+
"""
|
|
527
|
+
When filtering against this relation, return the field on the remote
|
|
528
|
+
model against which the filtering should happen.
|
|
529
|
+
"""
|
|
530
|
+
target_fields = self.path_infos[-1].target_fields
|
|
531
|
+
if len(target_fields) > 1:
|
|
532
|
+
raise exceptions.FieldError(
|
|
533
|
+
"The relation has multiple target fields, but only single target field "
|
|
534
|
+
"was asked for"
|
|
535
|
+
)
|
|
536
|
+
return target_fields[0]
|
|
537
|
+
|
|
538
|
+
@cached_property
|
|
539
|
+
def cache_name(self):
|
|
540
|
+
return self.name
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
class ForeignObject(RelatedField):
|
|
544
|
+
"""
|
|
545
|
+
Abstraction of the ForeignKey relation to support multi-column relations.
|
|
546
|
+
"""
|
|
547
|
+
|
|
548
|
+
# Field flags
|
|
549
|
+
many_to_many = False
|
|
550
|
+
many_to_one = True
|
|
551
|
+
one_to_many = False
|
|
552
|
+
one_to_one = False
|
|
553
|
+
|
|
554
|
+
requires_unique_target = True
|
|
555
|
+
related_accessor_class = ReverseManyToOneDescriptor
|
|
556
|
+
forward_related_accessor_class = ForwardManyToOneDescriptor
|
|
557
|
+
rel_class = ForeignObjectRel
|
|
558
|
+
|
|
559
|
+
def __init__(
|
|
560
|
+
self,
|
|
561
|
+
to,
|
|
562
|
+
on_delete,
|
|
563
|
+
from_fields,
|
|
564
|
+
to_fields,
|
|
565
|
+
rel=None,
|
|
566
|
+
related_name=None,
|
|
567
|
+
related_query_name=None,
|
|
568
|
+
limit_choices_to=None,
|
|
569
|
+
parent_link=False,
|
|
570
|
+
swappable=True,
|
|
571
|
+
**kwargs,
|
|
572
|
+
):
|
|
573
|
+
if rel is None:
|
|
574
|
+
rel = self.rel_class(
|
|
575
|
+
self,
|
|
576
|
+
to,
|
|
577
|
+
related_name=related_name,
|
|
578
|
+
related_query_name=related_query_name,
|
|
579
|
+
limit_choices_to=limit_choices_to,
|
|
580
|
+
parent_link=parent_link,
|
|
581
|
+
on_delete=on_delete,
|
|
582
|
+
)
|
|
583
|
+
|
|
584
|
+
super().__init__(
|
|
585
|
+
rel=rel,
|
|
586
|
+
related_name=related_name,
|
|
587
|
+
related_query_name=related_query_name,
|
|
588
|
+
limit_choices_to=limit_choices_to,
|
|
589
|
+
**kwargs,
|
|
590
|
+
)
|
|
591
|
+
|
|
592
|
+
self.from_fields = from_fields
|
|
593
|
+
self.to_fields = to_fields
|
|
594
|
+
self.swappable = swappable
|
|
595
|
+
|
|
596
|
+
def __copy__(self):
|
|
597
|
+
obj = super().__copy__()
|
|
598
|
+
# Remove any cached PathInfo values.
|
|
599
|
+
obj.__dict__.pop("path_infos", None)
|
|
600
|
+
obj.__dict__.pop("reverse_path_infos", None)
|
|
601
|
+
return obj
|
|
602
|
+
|
|
603
|
+
@property
|
|
604
|
+
def non_db_attrs(self):
|
|
605
|
+
if isinstance(self.remote_field.on_delete, DatabaseOnDelete):
|
|
606
|
+
# Database-level on_delete options are part of the column
|
|
607
|
+
# definition.
|
|
608
|
+
return super().non_db_attrs
|
|
609
|
+
return super().non_db_attrs + ("on_delete",)
|
|
610
|
+
|
|
611
|
+
def check(self, **kwargs):
|
|
612
|
+
return [
|
|
613
|
+
*super().check(**kwargs),
|
|
614
|
+
*self._check_to_fields_exist(),
|
|
615
|
+
*self._check_to_fields_composite_pk(),
|
|
616
|
+
*self._check_unique_target(),
|
|
617
|
+
]
|
|
618
|
+
|
|
619
|
+
def _check_to_fields_exist(self):
|
|
620
|
+
# Skip nonexistent models.
|
|
621
|
+
if isinstance(self.remote_field.model, str):
|
|
622
|
+
return []
|
|
623
|
+
|
|
624
|
+
errors = []
|
|
625
|
+
for to_field in self.to_fields:
|
|
626
|
+
if to_field:
|
|
627
|
+
try:
|
|
628
|
+
self.remote_field.model._meta.get_field(to_field)
|
|
629
|
+
except exceptions.FieldDoesNotExist:
|
|
630
|
+
errors.append(
|
|
631
|
+
checks.Error(
|
|
632
|
+
"The to_field '%s' doesn't exist on the related "
|
|
633
|
+
"model '%s'."
|
|
634
|
+
% (to_field, self.remote_field.model._meta.label),
|
|
635
|
+
obj=self,
|
|
636
|
+
id="fields.E312",
|
|
637
|
+
)
|
|
638
|
+
)
|
|
639
|
+
return errors
|
|
640
|
+
|
|
641
|
+
def _check_to_fields_composite_pk(self):
|
|
642
|
+
from django.db.models.fields.composite import CompositePrimaryKey
|
|
643
|
+
|
|
644
|
+
# Skip nonexistent models.
|
|
645
|
+
if isinstance(self.remote_field.model, str):
|
|
646
|
+
return []
|
|
647
|
+
|
|
648
|
+
errors = []
|
|
649
|
+
for to_field in self.to_fields:
|
|
650
|
+
try:
|
|
651
|
+
field = (
|
|
652
|
+
self.remote_field.model._meta.pk
|
|
653
|
+
if to_field is None
|
|
654
|
+
else self.remote_field.model._meta.get_field(to_field)
|
|
655
|
+
)
|
|
656
|
+
except exceptions.FieldDoesNotExist:
|
|
657
|
+
pass
|
|
658
|
+
else:
|
|
659
|
+
if isinstance(field, CompositePrimaryKey):
|
|
660
|
+
errors.append(
|
|
661
|
+
checks.Error(
|
|
662
|
+
"Field defines a relation involving model "
|
|
663
|
+
f"{self.remote_field.model._meta.object_name!r} which has "
|
|
664
|
+
"a CompositePrimaryKey and such relations are not "
|
|
665
|
+
"supported.",
|
|
666
|
+
obj=self,
|
|
667
|
+
id="fields.E347",
|
|
668
|
+
)
|
|
669
|
+
)
|
|
670
|
+
return errors
|
|
671
|
+
|
|
672
|
+
def _check_unique_target(self):
|
|
673
|
+
rel_is_string = isinstance(self.remote_field.model, str)
|
|
674
|
+
if rel_is_string or not self.requires_unique_target:
|
|
675
|
+
return []
|
|
676
|
+
|
|
677
|
+
try:
|
|
678
|
+
self.foreign_related_fields
|
|
679
|
+
except exceptions.FieldDoesNotExist:
|
|
680
|
+
return []
|
|
681
|
+
|
|
682
|
+
if not self.foreign_related_fields:
|
|
683
|
+
return []
|
|
684
|
+
|
|
685
|
+
has_unique_constraint = any(
|
|
686
|
+
rel_field.unique for rel_field in self.foreign_related_fields
|
|
687
|
+
)
|
|
688
|
+
if not has_unique_constraint:
|
|
689
|
+
foreign_fields = {f.name for f in self.foreign_related_fields}
|
|
690
|
+
remote_opts = self.remote_field.model._meta
|
|
691
|
+
has_unique_constraint = (
|
|
692
|
+
any(
|
|
693
|
+
frozenset(ut) <= foreign_fields
|
|
694
|
+
for ut in remote_opts.unique_together
|
|
695
|
+
)
|
|
696
|
+
or any(
|
|
697
|
+
frozenset(uc.fields) <= foreign_fields
|
|
698
|
+
for uc in remote_opts.total_unique_constraints
|
|
699
|
+
)
|
|
700
|
+
# If the model defines a composite primary key and the foreign
|
|
701
|
+
# key refers to it, the target is unique.
|
|
702
|
+
or (
|
|
703
|
+
frozenset(field.name for field in remote_opts.pk_fields)
|
|
704
|
+
== foreign_fields
|
|
705
|
+
)
|
|
706
|
+
)
|
|
707
|
+
|
|
708
|
+
if not has_unique_constraint:
|
|
709
|
+
if len(self.foreign_related_fields) > 1:
|
|
710
|
+
field_combination = ", ".join(
|
|
711
|
+
f"'{rel_field.name}'" for rel_field in self.foreign_related_fields
|
|
712
|
+
)
|
|
713
|
+
model_name = self.remote_field.model.__name__
|
|
714
|
+
return [
|
|
715
|
+
checks.Error(
|
|
716
|
+
f"No subset of the fields {field_combination} on model "
|
|
717
|
+
f"'{model_name}' is unique.",
|
|
718
|
+
hint=(
|
|
719
|
+
"Mark a single field as unique=True or add a set of "
|
|
720
|
+
"fields to a unique constraint (via unique_together "
|
|
721
|
+
"or a UniqueConstraint (without condition) in the "
|
|
722
|
+
"model Meta.constraints)."
|
|
723
|
+
),
|
|
724
|
+
obj=self,
|
|
725
|
+
id="fields.E310",
|
|
726
|
+
)
|
|
727
|
+
]
|
|
728
|
+
else:
|
|
729
|
+
field_name = self.foreign_related_fields[0].name
|
|
730
|
+
model_name = self.remote_field.model.__name__
|
|
731
|
+
return [
|
|
732
|
+
checks.Error(
|
|
733
|
+
f"'{model_name}.{field_name}' must be unique because it is "
|
|
734
|
+
"referenced by a foreign key.",
|
|
735
|
+
hint=(
|
|
736
|
+
"Add unique=True to this field or add a "
|
|
737
|
+
"UniqueConstraint (without condition) in the model "
|
|
738
|
+
"Meta.constraints."
|
|
739
|
+
),
|
|
740
|
+
obj=self,
|
|
741
|
+
id="fields.E311",
|
|
742
|
+
)
|
|
743
|
+
]
|
|
744
|
+
return []
|
|
745
|
+
|
|
746
|
+
def deconstruct(self):
|
|
747
|
+
name, path, args, kwargs = super().deconstruct()
|
|
748
|
+
kwargs["on_delete"] = self.remote_field.on_delete
|
|
749
|
+
kwargs["from_fields"] = self.from_fields
|
|
750
|
+
kwargs["to_fields"] = self.to_fields
|
|
751
|
+
|
|
752
|
+
if self.remote_field.parent_link:
|
|
753
|
+
kwargs["parent_link"] = self.remote_field.parent_link
|
|
754
|
+
if isinstance(self.remote_field.model, str):
|
|
755
|
+
if "." in self.remote_field.model:
|
|
756
|
+
app_label, model_name = self.remote_field.model.split(".")
|
|
757
|
+
kwargs["to"] = "%s.%s" % (app_label, model_name.lower())
|
|
758
|
+
else:
|
|
759
|
+
kwargs["to"] = self.remote_field.model.lower()
|
|
760
|
+
else:
|
|
761
|
+
kwargs["to"] = self.remote_field.model._meta.label_lower
|
|
762
|
+
# If swappable is True, then see if we're actually pointing to the
|
|
763
|
+
# target of a swap.
|
|
764
|
+
swappable_setting = self.swappable_setting
|
|
765
|
+
if swappable_setting is not None:
|
|
766
|
+
# If it's already a settings reference, error
|
|
767
|
+
if hasattr(kwargs["to"], "setting_name"):
|
|
768
|
+
if kwargs["to"].setting_name != swappable_setting:
|
|
769
|
+
raise ValueError(
|
|
770
|
+
"Cannot deconstruct a ForeignKey pointing to a model "
|
|
771
|
+
"that is swapped in place of more than one model (%s and %s)"
|
|
772
|
+
% (kwargs["to"].setting_name, swappable_setting)
|
|
773
|
+
)
|
|
774
|
+
# Set it
|
|
775
|
+
kwargs["to"] = SettingsReference(
|
|
776
|
+
kwargs["to"],
|
|
777
|
+
swappable_setting,
|
|
778
|
+
)
|
|
779
|
+
return name, path, args, kwargs
|
|
780
|
+
|
|
781
|
+
def resolve_related_fields(self):
|
|
782
|
+
if not self.from_fields or len(self.from_fields) != len(self.to_fields):
|
|
783
|
+
raise ValueError(
|
|
784
|
+
"Foreign Object from and to fields must be the same non-zero length"
|
|
785
|
+
)
|
|
786
|
+
if isinstance(self.remote_field.model, str):
|
|
787
|
+
raise ValueError(
|
|
788
|
+
"Related model %r cannot be resolved" % self.remote_field.model
|
|
789
|
+
)
|
|
790
|
+
related_fields = []
|
|
791
|
+
for from_field_name, to_field_name in zip(self.from_fields, self.to_fields):
|
|
792
|
+
from_field = (
|
|
793
|
+
self
|
|
794
|
+
if from_field_name == RECURSIVE_RELATIONSHIP_CONSTANT
|
|
795
|
+
else self.opts.get_field(from_field_name)
|
|
796
|
+
)
|
|
797
|
+
to_field = (
|
|
798
|
+
self.remote_field.model._meta.pk
|
|
799
|
+
if to_field_name is None
|
|
800
|
+
else self.remote_field.model._meta.get_field(to_field_name)
|
|
801
|
+
)
|
|
802
|
+
related_fields.append((from_field, to_field))
|
|
803
|
+
return related_fields
|
|
804
|
+
|
|
805
|
+
@cached_property
|
|
806
|
+
def related_fields(self):
|
|
807
|
+
return self.resolve_related_fields()
|
|
808
|
+
|
|
809
|
+
@cached_property
|
|
810
|
+
def reverse_related_fields(self):
|
|
811
|
+
return [(rhs_field, lhs_field) for lhs_field, rhs_field in self.related_fields]
|
|
812
|
+
|
|
813
|
+
@cached_property
|
|
814
|
+
def local_related_fields(self):
|
|
815
|
+
return tuple(lhs_field for lhs_field, rhs_field in self.related_fields)
|
|
816
|
+
|
|
817
|
+
@cached_property
|
|
818
|
+
def foreign_related_fields(self):
|
|
819
|
+
return tuple(
|
|
820
|
+
rhs_field for lhs_field, rhs_field in self.related_fields if rhs_field
|
|
821
|
+
)
|
|
822
|
+
|
|
823
|
+
def get_local_related_value(self, instance):
|
|
824
|
+
return self.get_instance_value_for_fields(instance, self.local_related_fields)
|
|
825
|
+
|
|
826
|
+
def get_foreign_related_value(self, instance):
|
|
827
|
+
return self.get_instance_value_for_fields(instance, self.foreign_related_fields)
|
|
828
|
+
|
|
829
|
+
@staticmethod
|
|
830
|
+
def get_instance_value_for_fields(instance, fields):
|
|
831
|
+
ret = []
|
|
832
|
+
opts = instance._meta
|
|
833
|
+
for field in fields:
|
|
834
|
+
# Gotcha: in some cases (like fixture loading) a model can have
|
|
835
|
+
# different values in parent_ptr_id and parent's id. So, use
|
|
836
|
+
# instance.pk (that is, parent_ptr_id) when asked for instance.id.
|
|
837
|
+
if field.primary_key:
|
|
838
|
+
possible_parent_link = opts.get_ancestor_link(field.model)
|
|
839
|
+
if (
|
|
840
|
+
not possible_parent_link
|
|
841
|
+
or possible_parent_link.primary_key
|
|
842
|
+
or possible_parent_link.model._meta.abstract
|
|
843
|
+
):
|
|
844
|
+
ret.append(instance.pk)
|
|
845
|
+
continue
|
|
846
|
+
ret.append(getattr(instance, field.attname))
|
|
847
|
+
return tuple(ret)
|
|
848
|
+
|
|
849
|
+
def get_attname_column(self):
|
|
850
|
+
attname, column = super().get_attname_column()
|
|
851
|
+
return attname, None
|
|
852
|
+
|
|
853
|
+
def get_joining_fields(self, reverse_join=False):
|
|
854
|
+
return tuple(
|
|
855
|
+
self.reverse_related_fields if reverse_join else self.related_fields
|
|
856
|
+
)
|
|
857
|
+
|
|
858
|
+
def get_reverse_joining_fields(self):
|
|
859
|
+
return self.get_joining_fields(reverse_join=True)
|
|
860
|
+
|
|
861
|
+
def get_extra_descriptor_filter(self, instance):
|
|
862
|
+
"""
|
|
863
|
+
Return an extra filter condition for related object fetching when
|
|
864
|
+
user does 'instance.fieldname', that is the extra filter is used in
|
|
865
|
+
the descriptor of the field.
|
|
866
|
+
|
|
867
|
+
The filter should be either a dict usable in .filter(**kwargs) call or
|
|
868
|
+
a Q-object. The condition will be ANDed together with the relation's
|
|
869
|
+
joining columns.
|
|
870
|
+
|
|
871
|
+
A parallel method is get_extra_restriction() which is used in
|
|
872
|
+
JOIN and subquery conditions.
|
|
873
|
+
"""
|
|
874
|
+
return {}
|
|
875
|
+
|
|
876
|
+
def get_extra_restriction(self, alias, related_alias):
|
|
877
|
+
"""
|
|
878
|
+
Return a pair condition used for joining and subquery pushdown. The
|
|
879
|
+
condition is something that responds to as_sql(compiler, connection)
|
|
880
|
+
method.
|
|
881
|
+
|
|
882
|
+
Note that currently referring both the 'alias' and 'related_alias'
|
|
883
|
+
will not work in some conditions, like subquery pushdown.
|
|
884
|
+
|
|
885
|
+
A parallel method is get_extra_descriptor_filter() which is used in
|
|
886
|
+
instance.fieldname related object fetching.
|
|
887
|
+
"""
|
|
888
|
+
return None
|
|
889
|
+
|
|
890
|
+
def get_path_info(self, filtered_relation=None):
|
|
891
|
+
"""Get path from this field to the related model."""
|
|
892
|
+
opts = self.remote_field.model._meta
|
|
893
|
+
from_opts = self.model._meta
|
|
894
|
+
return [
|
|
895
|
+
PathInfo(
|
|
896
|
+
from_opts=from_opts,
|
|
897
|
+
to_opts=opts,
|
|
898
|
+
target_fields=self.foreign_related_fields,
|
|
899
|
+
join_field=self,
|
|
900
|
+
m2m=False,
|
|
901
|
+
direct=True,
|
|
902
|
+
filtered_relation=filtered_relation,
|
|
903
|
+
)
|
|
904
|
+
]
|
|
905
|
+
|
|
906
|
+
@cached_property
|
|
907
|
+
def path_infos(self):
|
|
908
|
+
return self.get_path_info()
|
|
909
|
+
|
|
910
|
+
def get_reverse_path_info(self, filtered_relation=None):
|
|
911
|
+
"""Get path from the related model to this field's model."""
|
|
912
|
+
opts = self.model._meta
|
|
913
|
+
from_opts = self.remote_field.model._meta
|
|
914
|
+
return [
|
|
915
|
+
PathInfo(
|
|
916
|
+
from_opts=from_opts,
|
|
917
|
+
to_opts=opts,
|
|
918
|
+
target_fields=(opts.pk,),
|
|
919
|
+
join_field=self.remote_field,
|
|
920
|
+
m2m=not self.unique,
|
|
921
|
+
direct=False,
|
|
922
|
+
filtered_relation=filtered_relation,
|
|
923
|
+
)
|
|
924
|
+
]
|
|
925
|
+
|
|
926
|
+
@cached_property
|
|
927
|
+
def reverse_path_infos(self):
|
|
928
|
+
return self.get_reverse_path_info()
|
|
929
|
+
|
|
930
|
+
@classmethod
|
|
931
|
+
@functools.cache
|
|
932
|
+
def get_class_lookups(cls):
|
|
933
|
+
bases = inspect.getmro(cls)
|
|
934
|
+
bases = bases[: bases.index(ForeignObject) + 1]
|
|
935
|
+
class_lookups = [parent.__dict__.get("class_lookups", {}) for parent in bases]
|
|
936
|
+
return cls.merge_dicts(class_lookups)
|
|
937
|
+
|
|
938
|
+
def contribute_to_class(self, cls, name, private_only=False, **kwargs):
|
|
939
|
+
super().contribute_to_class(cls, name, private_only=private_only, **kwargs)
|
|
940
|
+
setattr(cls, self.name, self.forward_related_accessor_class(self))
|
|
941
|
+
|
|
942
|
+
def contribute_to_related_class(self, cls, related):
|
|
943
|
+
# Internal FK's - i.e., those with a related name ending with '+' -
|
|
944
|
+
# and swapped models don't get a related descriptor.
|
|
945
|
+
if not self.remote_field.hidden and not related.related_model._meta.swapped:
|
|
946
|
+
setattr(
|
|
947
|
+
cls._meta.concrete_model,
|
|
948
|
+
related.accessor_name,
|
|
949
|
+
self.related_accessor_class(related),
|
|
950
|
+
)
|
|
951
|
+
# While 'limit_choices_to' might be a callable, simply pass
|
|
952
|
+
# it along for later - this is too early because it's still
|
|
953
|
+
# model load time.
|
|
954
|
+
if self.remote_field.limit_choices_to:
|
|
955
|
+
cls._meta.related_fkey_lookups.append(
|
|
956
|
+
self.remote_field.limit_choices_to
|
|
957
|
+
)
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
ForeignObject.register_lookup(RelatedIn)
|
|
961
|
+
ForeignObject.register_lookup(RelatedExact)
|
|
962
|
+
ForeignObject.register_lookup(RelatedLessThan)
|
|
963
|
+
ForeignObject.register_lookup(RelatedGreaterThan)
|
|
964
|
+
ForeignObject.register_lookup(RelatedGreaterThanOrEqual)
|
|
965
|
+
ForeignObject.register_lookup(RelatedLessThanOrEqual)
|
|
966
|
+
ForeignObject.register_lookup(RelatedIsNull)
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
class ForeignKey(ForeignObject):
|
|
970
|
+
"""
|
|
971
|
+
Provide a many-to-one relation by adding a column to the local model
|
|
972
|
+
to hold the remote value.
|
|
973
|
+
|
|
974
|
+
By default ForeignKey will target the pk of the remote model but this
|
|
975
|
+
behavior can be changed by using the ``to_field`` argument.
|
|
976
|
+
"""
|
|
977
|
+
|
|
978
|
+
descriptor_class = ForeignKeyDeferredAttribute
|
|
979
|
+
# Field flags
|
|
980
|
+
many_to_many = False
|
|
981
|
+
many_to_one = True
|
|
982
|
+
one_to_many = False
|
|
983
|
+
one_to_one = False
|
|
984
|
+
|
|
985
|
+
rel_class = ManyToOneRel
|
|
986
|
+
|
|
987
|
+
empty_strings_allowed = False
|
|
988
|
+
default_error_messages = {
|
|
989
|
+
"invalid": _(
|
|
990
|
+
"%(model)s instance with %(field)s %(value)r is not a valid choice."
|
|
991
|
+
)
|
|
992
|
+
}
|
|
993
|
+
description = _("Foreign Key (type determined by related field)")
|
|
994
|
+
|
|
995
|
+
def __init__(
|
|
996
|
+
self,
|
|
997
|
+
to,
|
|
998
|
+
on_delete,
|
|
999
|
+
related_name=None,
|
|
1000
|
+
related_query_name=None,
|
|
1001
|
+
limit_choices_to=None,
|
|
1002
|
+
parent_link=False,
|
|
1003
|
+
to_field=None,
|
|
1004
|
+
db_constraint=True,
|
|
1005
|
+
**kwargs,
|
|
1006
|
+
):
|
|
1007
|
+
try:
|
|
1008
|
+
to._meta.model_name
|
|
1009
|
+
except AttributeError:
|
|
1010
|
+
if not isinstance(to, str):
|
|
1011
|
+
raise TypeError(
|
|
1012
|
+
"%s(%r) is invalid. First parameter to ForeignKey must be "
|
|
1013
|
+
"either a model, a model name, or the string %r"
|
|
1014
|
+
% (
|
|
1015
|
+
self.__class__.__name__,
|
|
1016
|
+
to,
|
|
1017
|
+
RECURSIVE_RELATIONSHIP_CONSTANT,
|
|
1018
|
+
)
|
|
1019
|
+
)
|
|
1020
|
+
else:
|
|
1021
|
+
# For backwards compatibility purposes, we need to *try* and set
|
|
1022
|
+
# the to_field during FK construction. It won't be guaranteed to
|
|
1023
|
+
# be correct until contribute_to_class is called. Refs #12190.
|
|
1024
|
+
to_field = to_field or (to._meta.pk and to._meta.pk.name)
|
|
1025
|
+
if not callable(on_delete):
|
|
1026
|
+
raise TypeError("on_delete must be callable.")
|
|
1027
|
+
|
|
1028
|
+
kwargs["rel"] = self.rel_class(
|
|
1029
|
+
self,
|
|
1030
|
+
to,
|
|
1031
|
+
to_field,
|
|
1032
|
+
related_name=related_name,
|
|
1033
|
+
related_query_name=related_query_name,
|
|
1034
|
+
limit_choices_to=limit_choices_to,
|
|
1035
|
+
parent_link=parent_link,
|
|
1036
|
+
on_delete=on_delete,
|
|
1037
|
+
)
|
|
1038
|
+
kwargs.setdefault("db_index", True)
|
|
1039
|
+
|
|
1040
|
+
super().__init__(
|
|
1041
|
+
to,
|
|
1042
|
+
on_delete,
|
|
1043
|
+
related_name=related_name,
|
|
1044
|
+
related_query_name=related_query_name,
|
|
1045
|
+
limit_choices_to=limit_choices_to,
|
|
1046
|
+
from_fields=[RECURSIVE_RELATIONSHIP_CONSTANT],
|
|
1047
|
+
to_fields=[to_field],
|
|
1048
|
+
**kwargs,
|
|
1049
|
+
)
|
|
1050
|
+
self.db_constraint = db_constraint
|
|
1051
|
+
|
|
1052
|
+
def __class_getitem__(cls, *args, **kwargs):
|
|
1053
|
+
return cls
|
|
1054
|
+
|
|
1055
|
+
def check(self, **kwargs):
|
|
1056
|
+
databases = kwargs.get("databases") or []
|
|
1057
|
+
return [
|
|
1058
|
+
*super().check(**kwargs),
|
|
1059
|
+
*self._check_on_delete(databases),
|
|
1060
|
+
*self._check_unique(),
|
|
1061
|
+
]
|
|
1062
|
+
|
|
1063
|
+
def _check_on_delete_db_support(self, on_delete, feature_flag, databases):
|
|
1064
|
+
for db in databases:
|
|
1065
|
+
if not router.allow_migrate_model(db, self.model):
|
|
1066
|
+
continue
|
|
1067
|
+
connection = connections[db]
|
|
1068
|
+
if feature_flag in self.model._meta.required_db_features or getattr(
|
|
1069
|
+
connection.features, feature_flag
|
|
1070
|
+
):
|
|
1071
|
+
continue
|
|
1072
|
+
no_db_option_name = on_delete.__name__.removeprefix("DB_")
|
|
1073
|
+
yield checks.Error(
|
|
1074
|
+
f"{connection.display_name} does not support a {on_delete.__name__}.",
|
|
1075
|
+
hint=f"Change the on_delete rule to {no_db_option_name}.",
|
|
1076
|
+
obj=self,
|
|
1077
|
+
id="fields.E324",
|
|
1078
|
+
)
|
|
1079
|
+
|
|
1080
|
+
def _check_on_delete(self, databases):
|
|
1081
|
+
on_delete = getattr(self.remote_field, "on_delete", None)
|
|
1082
|
+
errors = []
|
|
1083
|
+
if on_delete == DB_CASCADE:
|
|
1084
|
+
errors.extend(
|
|
1085
|
+
self._check_on_delete_db_support(
|
|
1086
|
+
on_delete, "supports_on_delete_db_cascade", databases
|
|
1087
|
+
)
|
|
1088
|
+
)
|
|
1089
|
+
if on_delete == DB_SET_NULL:
|
|
1090
|
+
errors.extend(
|
|
1091
|
+
self._check_on_delete_db_support(
|
|
1092
|
+
on_delete, "supports_on_delete_db_null", databases
|
|
1093
|
+
)
|
|
1094
|
+
)
|
|
1095
|
+
if on_delete in [DB_SET_NULL, SET_NULL] and not self.null:
|
|
1096
|
+
errors.append(
|
|
1097
|
+
checks.Error(
|
|
1098
|
+
f"Field specifies on_delete={on_delete.__name__}, but cannot be "
|
|
1099
|
+
"null.",
|
|
1100
|
+
hint=(
|
|
1101
|
+
"Set null=True argument on the field, or change the on_delete "
|
|
1102
|
+
"rule."
|
|
1103
|
+
),
|
|
1104
|
+
obj=self,
|
|
1105
|
+
id="fields.E320",
|
|
1106
|
+
)
|
|
1107
|
+
)
|
|
1108
|
+
elif on_delete == SET_DEFAULT and not self.has_default():
|
|
1109
|
+
errors.append(
|
|
1110
|
+
checks.Error(
|
|
1111
|
+
"Field specifies on_delete=SET_DEFAULT, but has no default value.",
|
|
1112
|
+
hint="Set a default value, or change the on_delete rule.",
|
|
1113
|
+
obj=self,
|
|
1114
|
+
id="fields.E321",
|
|
1115
|
+
)
|
|
1116
|
+
)
|
|
1117
|
+
elif on_delete == DB_SET_DEFAULT:
|
|
1118
|
+
if self.db_default is NOT_PROVIDED:
|
|
1119
|
+
errors.append(
|
|
1120
|
+
checks.Error(
|
|
1121
|
+
"Field specifies on_delete=DB_SET_DEFAULT, but has "
|
|
1122
|
+
"no db_default value.",
|
|
1123
|
+
hint="Set a db_default value, or change the on_delete rule.",
|
|
1124
|
+
obj=self,
|
|
1125
|
+
id="fields.E322",
|
|
1126
|
+
)
|
|
1127
|
+
)
|
|
1128
|
+
errors.extend(
|
|
1129
|
+
self._check_on_delete_db_support(
|
|
1130
|
+
on_delete, "supports_on_delete_db_default", databases
|
|
1131
|
+
)
|
|
1132
|
+
)
|
|
1133
|
+
if not isinstance(self.remote_field.model, str) and on_delete != DO_NOTHING:
|
|
1134
|
+
# Database and Python variants cannot be mixed in a chain of
|
|
1135
|
+
# model references.
|
|
1136
|
+
is_db_on_delete = isinstance(on_delete, DatabaseOnDelete)
|
|
1137
|
+
ref_model_related_fields = (
|
|
1138
|
+
ref_model_field.remote_field
|
|
1139
|
+
for ref_model_field in self.remote_field.model._meta.get_fields()
|
|
1140
|
+
if ref_model_field.related_model
|
|
1141
|
+
and hasattr(ref_model_field.remote_field, "on_delete")
|
|
1142
|
+
)
|
|
1143
|
+
|
|
1144
|
+
for ref_remote_field in ref_model_related_fields:
|
|
1145
|
+
if (
|
|
1146
|
+
ref_remote_field.on_delete is not None
|
|
1147
|
+
and ref_remote_field.on_delete != DO_NOTHING
|
|
1148
|
+
and isinstance(ref_remote_field.on_delete, DatabaseOnDelete)
|
|
1149
|
+
is not is_db_on_delete
|
|
1150
|
+
):
|
|
1151
|
+
on_delete_type = "database" if is_db_on_delete else "Python"
|
|
1152
|
+
ref_on_delete_type = "Python" if is_db_on_delete else "database"
|
|
1153
|
+
errors.append(
|
|
1154
|
+
checks.Error(
|
|
1155
|
+
f"Field specifies {on_delete_type}-level on_delete "
|
|
1156
|
+
"variant, but referenced model uses "
|
|
1157
|
+
f"{ref_on_delete_type}-level variant.",
|
|
1158
|
+
hint=(
|
|
1159
|
+
"Use either database or Python on_delete variants "
|
|
1160
|
+
"uniformly in the references chain."
|
|
1161
|
+
),
|
|
1162
|
+
obj=self,
|
|
1163
|
+
id="fields.E323",
|
|
1164
|
+
)
|
|
1165
|
+
)
|
|
1166
|
+
break
|
|
1167
|
+
return errors
|
|
1168
|
+
|
|
1169
|
+
def _check_unique(self, **kwargs):
|
|
1170
|
+
return (
|
|
1171
|
+
[
|
|
1172
|
+
checks.Warning(
|
|
1173
|
+
"Setting unique=True on a ForeignKey has the same effect as using "
|
|
1174
|
+
"a OneToOneField.",
|
|
1175
|
+
hint=(
|
|
1176
|
+
"ForeignKey(unique=True) is usually better served by a "
|
|
1177
|
+
"OneToOneField."
|
|
1178
|
+
),
|
|
1179
|
+
obj=self,
|
|
1180
|
+
id="fields.W342",
|
|
1181
|
+
)
|
|
1182
|
+
]
|
|
1183
|
+
if self.unique
|
|
1184
|
+
else []
|
|
1185
|
+
)
|
|
1186
|
+
|
|
1187
|
+
def deconstruct(self):
|
|
1188
|
+
name, path, args, kwargs = super().deconstruct()
|
|
1189
|
+
del kwargs["to_fields"]
|
|
1190
|
+
del kwargs["from_fields"]
|
|
1191
|
+
# Handle the simpler arguments
|
|
1192
|
+
if self.db_index:
|
|
1193
|
+
del kwargs["db_index"]
|
|
1194
|
+
else:
|
|
1195
|
+
kwargs["db_index"] = False
|
|
1196
|
+
if self.db_constraint is not True:
|
|
1197
|
+
kwargs["db_constraint"] = self.db_constraint
|
|
1198
|
+
# Rel needs more work.
|
|
1199
|
+
to_meta = getattr(self.remote_field.model, "_meta", None)
|
|
1200
|
+
if self.remote_field.field_name and (
|
|
1201
|
+
not to_meta
|
|
1202
|
+
or (to_meta.pk and self.remote_field.field_name != to_meta.pk.name)
|
|
1203
|
+
):
|
|
1204
|
+
kwargs["to_field"] = self.remote_field.field_name
|
|
1205
|
+
return name, path, args, kwargs
|
|
1206
|
+
|
|
1207
|
+
def to_python(self, value):
|
|
1208
|
+
return self.target_field.to_python(value)
|
|
1209
|
+
|
|
1210
|
+
@property
|
|
1211
|
+
def target_field(self):
|
|
1212
|
+
return self.foreign_related_fields[0]
|
|
1213
|
+
|
|
1214
|
+
def validate(self, value, model_instance):
|
|
1215
|
+
if self.remote_field.parent_link:
|
|
1216
|
+
return
|
|
1217
|
+
super().validate(value, model_instance)
|
|
1218
|
+
if value is None:
|
|
1219
|
+
return
|
|
1220
|
+
|
|
1221
|
+
using = router.db_for_read(self.remote_field.model, instance=model_instance)
|
|
1222
|
+
qs = self.remote_field.model._base_manager.using(using).filter(
|
|
1223
|
+
**{self.remote_field.field_name: value}
|
|
1224
|
+
)
|
|
1225
|
+
qs = qs.complex_filter(self.get_limit_choices_to())
|
|
1226
|
+
if not qs.exists():
|
|
1227
|
+
raise exceptions.ValidationError(
|
|
1228
|
+
self.error_messages["invalid"],
|
|
1229
|
+
code="invalid",
|
|
1230
|
+
params={
|
|
1231
|
+
"model": self.remote_field.model._meta.verbose_name,
|
|
1232
|
+
"pk": value,
|
|
1233
|
+
"field": self.remote_field.field_name,
|
|
1234
|
+
"value": value,
|
|
1235
|
+
}, # 'pk' is included for backwards compatibility
|
|
1236
|
+
)
|
|
1237
|
+
|
|
1238
|
+
def resolve_related_fields(self):
|
|
1239
|
+
related_fields = super().resolve_related_fields()
|
|
1240
|
+
for from_field, to_field in related_fields:
|
|
1241
|
+
if (
|
|
1242
|
+
to_field
|
|
1243
|
+
and to_field.model != self.remote_field.model._meta.concrete_model
|
|
1244
|
+
):
|
|
1245
|
+
raise exceptions.FieldError(
|
|
1246
|
+
"'%s.%s' refers to field '%s' which is not local to model "
|
|
1247
|
+
"'%s'."
|
|
1248
|
+
% (
|
|
1249
|
+
self.model._meta.label,
|
|
1250
|
+
self.name,
|
|
1251
|
+
to_field.name,
|
|
1252
|
+
self.remote_field.model._meta.concrete_model._meta.label,
|
|
1253
|
+
)
|
|
1254
|
+
)
|
|
1255
|
+
return related_fields
|
|
1256
|
+
|
|
1257
|
+
def get_attname(self):
|
|
1258
|
+
return "%s_id" % self.name
|
|
1259
|
+
|
|
1260
|
+
def get_attname_column(self):
|
|
1261
|
+
attname = self.get_attname()
|
|
1262
|
+
column = self.db_column or attname
|
|
1263
|
+
return attname, column
|
|
1264
|
+
|
|
1265
|
+
def get_default(self):
|
|
1266
|
+
"""Return the to_field if the default value is an object."""
|
|
1267
|
+
field_default = super().get_default()
|
|
1268
|
+
if isinstance(field_default, self.remote_field.model):
|
|
1269
|
+
return getattr(field_default, self.target_field.attname)
|
|
1270
|
+
return field_default
|
|
1271
|
+
|
|
1272
|
+
def get_db_prep_save(self, value, connection):
|
|
1273
|
+
if value is None or (
|
|
1274
|
+
value == ""
|
|
1275
|
+
and (
|
|
1276
|
+
not self.target_field.empty_strings_allowed
|
|
1277
|
+
or connection.features.interprets_empty_strings_as_nulls
|
|
1278
|
+
)
|
|
1279
|
+
):
|
|
1280
|
+
return None
|
|
1281
|
+
else:
|
|
1282
|
+
return self.target_field.get_db_prep_save(value, connection=connection)
|
|
1283
|
+
|
|
1284
|
+
def get_db_prep_value(self, value, connection, prepared=False):
|
|
1285
|
+
return self.target_field.get_db_prep_value(value, connection, prepared)
|
|
1286
|
+
|
|
1287
|
+
def get_prep_value(self, value):
|
|
1288
|
+
return self.target_field.get_prep_value(value)
|
|
1289
|
+
|
|
1290
|
+
def contribute_to_related_class(self, cls, related):
|
|
1291
|
+
super().contribute_to_related_class(cls, related)
|
|
1292
|
+
if self.remote_field.field_name is None:
|
|
1293
|
+
self.remote_field.field_name = cls._meta.pk.name
|
|
1294
|
+
|
|
1295
|
+
def formfield(self, *, using=None, **kwargs):
|
|
1296
|
+
if isinstance(self.remote_field.model, str):
|
|
1297
|
+
raise ValueError(
|
|
1298
|
+
"Cannot create form field for %r yet, because "
|
|
1299
|
+
"its related model %r has not been loaded yet"
|
|
1300
|
+
% (self.name, self.remote_field.model)
|
|
1301
|
+
)
|
|
1302
|
+
return super().formfield(
|
|
1303
|
+
**{
|
|
1304
|
+
"form_class": forms.ModelChoiceField,
|
|
1305
|
+
"queryset": self.remote_field.model._default_manager.using(using),
|
|
1306
|
+
"to_field_name": self.remote_field.field_name,
|
|
1307
|
+
**kwargs,
|
|
1308
|
+
"blank": self.blank,
|
|
1309
|
+
}
|
|
1310
|
+
)
|
|
1311
|
+
|
|
1312
|
+
def db_check(self, connection):
|
|
1313
|
+
return None
|
|
1314
|
+
|
|
1315
|
+
def db_type(self, connection):
|
|
1316
|
+
return self.target_field.rel_db_type(connection=connection)
|
|
1317
|
+
|
|
1318
|
+
def cast_db_type(self, connection):
|
|
1319
|
+
return self.target_field.cast_db_type(connection=connection)
|
|
1320
|
+
|
|
1321
|
+
def db_parameters(self, connection):
|
|
1322
|
+
target_db_parameters = self.target_field.db_parameters(connection)
|
|
1323
|
+
return {
|
|
1324
|
+
"type": self.db_type(connection),
|
|
1325
|
+
"check": self.db_check(connection),
|
|
1326
|
+
"collation": target_db_parameters.get("collation"),
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
def convert_empty_strings(self, value, expression, connection):
|
|
1330
|
+
if (not value) and isinstance(value, str):
|
|
1331
|
+
return None
|
|
1332
|
+
return value
|
|
1333
|
+
|
|
1334
|
+
def get_db_converters(self, connection):
|
|
1335
|
+
converters = super().get_db_converters(connection)
|
|
1336
|
+
if connection.features.interprets_empty_strings_as_nulls:
|
|
1337
|
+
converters += [self.convert_empty_strings]
|
|
1338
|
+
return converters
|
|
1339
|
+
|
|
1340
|
+
def get_col(self, alias, output_field=None):
|
|
1341
|
+
if output_field is None:
|
|
1342
|
+
output_field = self.target_field
|
|
1343
|
+
while isinstance(output_field, ForeignKey):
|
|
1344
|
+
output_field = output_field.target_field
|
|
1345
|
+
if output_field is self:
|
|
1346
|
+
raise ValueError("Cannot resolve output_field.")
|
|
1347
|
+
return super().get_col(alias, output_field)
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
class OneToOneField(ForeignKey):
|
|
1351
|
+
"""
|
|
1352
|
+
A OneToOneField is essentially the same as a ForeignKey, with the exception
|
|
1353
|
+
that it always carries a "unique" constraint with it and the reverse
|
|
1354
|
+
relation always returns the object pointed to (since there will only ever
|
|
1355
|
+
be one), rather than returning a list.
|
|
1356
|
+
"""
|
|
1357
|
+
|
|
1358
|
+
# Field flags
|
|
1359
|
+
many_to_many = False
|
|
1360
|
+
many_to_one = False
|
|
1361
|
+
one_to_many = False
|
|
1362
|
+
one_to_one = True
|
|
1363
|
+
|
|
1364
|
+
related_accessor_class = ReverseOneToOneDescriptor
|
|
1365
|
+
forward_related_accessor_class = ForwardOneToOneDescriptor
|
|
1366
|
+
rel_class = OneToOneRel
|
|
1367
|
+
|
|
1368
|
+
description = _("One-to-one relationship")
|
|
1369
|
+
|
|
1370
|
+
def __init__(self, to, on_delete, to_field=None, **kwargs):
|
|
1371
|
+
kwargs["unique"] = True
|
|
1372
|
+
super().__init__(to, on_delete, to_field=to_field, **kwargs)
|
|
1373
|
+
|
|
1374
|
+
def deconstruct(self):
|
|
1375
|
+
name, path, args, kwargs = super().deconstruct()
|
|
1376
|
+
if "unique" in kwargs:
|
|
1377
|
+
del kwargs["unique"]
|
|
1378
|
+
return name, path, args, kwargs
|
|
1379
|
+
|
|
1380
|
+
def formfield(self, **kwargs):
|
|
1381
|
+
if self.remote_field.parent_link:
|
|
1382
|
+
return None
|
|
1383
|
+
return super().formfield(**kwargs)
|
|
1384
|
+
|
|
1385
|
+
def save_form_data(self, instance, data):
|
|
1386
|
+
if isinstance(data, self.remote_field.model):
|
|
1387
|
+
setattr(instance, self.name, data)
|
|
1388
|
+
else:
|
|
1389
|
+
setattr(instance, self.attname, data)
|
|
1390
|
+
# Remote field object must be cleared otherwise Model.save()
|
|
1391
|
+
# will reassign attname using the related object pk.
|
|
1392
|
+
if data is None:
|
|
1393
|
+
setattr(instance, self.name, data)
|
|
1394
|
+
|
|
1395
|
+
def _check_unique(self, **kwargs):
|
|
1396
|
+
# Override ForeignKey since check isn't applicable here.
|
|
1397
|
+
return []
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
def create_many_to_many_intermediary_model(field, klass):
|
|
1401
|
+
from django.db import models
|
|
1402
|
+
|
|
1403
|
+
def set_managed(model, related, through):
|
|
1404
|
+
through._meta.managed = model._meta.managed or related._meta.managed
|
|
1405
|
+
|
|
1406
|
+
to_model = resolve_relation(klass, field.remote_field.model)
|
|
1407
|
+
name = "%s_%s" % (klass._meta.object_name, field.name)
|
|
1408
|
+
lazy_related_operation(set_managed, klass, to_model, name)
|
|
1409
|
+
|
|
1410
|
+
to = make_model_tuple(to_model)[1]
|
|
1411
|
+
from_ = klass._meta.model_name
|
|
1412
|
+
if to == from_:
|
|
1413
|
+
to = "to_%s" % to
|
|
1414
|
+
from_ = "from_%s" % from_
|
|
1415
|
+
|
|
1416
|
+
meta = type(
|
|
1417
|
+
"Meta",
|
|
1418
|
+
(),
|
|
1419
|
+
{
|
|
1420
|
+
"db_table": field._get_m2m_db_table(klass._meta),
|
|
1421
|
+
"auto_created": klass,
|
|
1422
|
+
"app_label": klass._meta.app_label,
|
|
1423
|
+
"db_tablespace": klass._meta.db_tablespace,
|
|
1424
|
+
"unique_together": (from_, to),
|
|
1425
|
+
"verbose_name": _("%(from)s-%(to)s relationship")
|
|
1426
|
+
% {"from": from_, "to": to},
|
|
1427
|
+
"verbose_name_plural": _("%(from)s-%(to)s relationships")
|
|
1428
|
+
% {"from": from_, "to": to},
|
|
1429
|
+
"apps": field.model._meta.apps,
|
|
1430
|
+
},
|
|
1431
|
+
)
|
|
1432
|
+
# Construct and return the new class.
|
|
1433
|
+
return type(
|
|
1434
|
+
name,
|
|
1435
|
+
(models.Model,),
|
|
1436
|
+
{
|
|
1437
|
+
"Meta": meta,
|
|
1438
|
+
"__module__": klass.__module__,
|
|
1439
|
+
from_: models.ForeignKey(
|
|
1440
|
+
klass,
|
|
1441
|
+
related_name="%s+" % name,
|
|
1442
|
+
db_tablespace=field.db_tablespace,
|
|
1443
|
+
db_constraint=field.remote_field.db_constraint,
|
|
1444
|
+
on_delete=CASCADE,
|
|
1445
|
+
),
|
|
1446
|
+
to: models.ForeignKey(
|
|
1447
|
+
to_model,
|
|
1448
|
+
related_name="%s+" % name,
|
|
1449
|
+
db_tablespace=field.db_tablespace,
|
|
1450
|
+
db_constraint=field.remote_field.db_constraint,
|
|
1451
|
+
on_delete=CASCADE,
|
|
1452
|
+
),
|
|
1453
|
+
},
|
|
1454
|
+
)
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
class ManyToManyField(RelatedField):
|
|
1458
|
+
"""
|
|
1459
|
+
Provide a many-to-many relation by using an intermediary model that
|
|
1460
|
+
holds two ForeignKey fields pointed at the two sides of the relation.
|
|
1461
|
+
|
|
1462
|
+
Unless a ``through`` model was provided, ManyToManyField will use the
|
|
1463
|
+
create_many_to_many_intermediary_model factory to automatically generate
|
|
1464
|
+
the intermediary model.
|
|
1465
|
+
"""
|
|
1466
|
+
|
|
1467
|
+
# Field flags
|
|
1468
|
+
many_to_many = True
|
|
1469
|
+
many_to_one = False
|
|
1470
|
+
one_to_many = False
|
|
1471
|
+
one_to_one = False
|
|
1472
|
+
|
|
1473
|
+
rel_class = ManyToManyRel
|
|
1474
|
+
|
|
1475
|
+
description = _("Many-to-many relationship")
|
|
1476
|
+
|
|
1477
|
+
def __init__(
|
|
1478
|
+
self,
|
|
1479
|
+
to,
|
|
1480
|
+
related_name=None,
|
|
1481
|
+
related_query_name=None,
|
|
1482
|
+
limit_choices_to=None,
|
|
1483
|
+
symmetrical=None,
|
|
1484
|
+
through=None,
|
|
1485
|
+
through_fields=None,
|
|
1486
|
+
db_constraint=True,
|
|
1487
|
+
db_table=None,
|
|
1488
|
+
swappable=True,
|
|
1489
|
+
**kwargs,
|
|
1490
|
+
):
|
|
1491
|
+
try:
|
|
1492
|
+
to._meta
|
|
1493
|
+
except AttributeError:
|
|
1494
|
+
if not isinstance(to, str):
|
|
1495
|
+
raise TypeError(
|
|
1496
|
+
"%s(%r) is invalid. First parameter to ManyToManyField "
|
|
1497
|
+
"must be either a model, a model name, or the string %r"
|
|
1498
|
+
% (
|
|
1499
|
+
self.__class__.__name__,
|
|
1500
|
+
to,
|
|
1501
|
+
RECURSIVE_RELATIONSHIP_CONSTANT,
|
|
1502
|
+
)
|
|
1503
|
+
)
|
|
1504
|
+
|
|
1505
|
+
if symmetrical is None:
|
|
1506
|
+
symmetrical = to == RECURSIVE_RELATIONSHIP_CONSTANT
|
|
1507
|
+
|
|
1508
|
+
if through is not None and db_table is not None:
|
|
1509
|
+
raise ValueError(
|
|
1510
|
+
"Cannot specify a db_table if an intermediary model is used."
|
|
1511
|
+
)
|
|
1512
|
+
|
|
1513
|
+
kwargs["rel"] = self.rel_class(
|
|
1514
|
+
self,
|
|
1515
|
+
to,
|
|
1516
|
+
related_name=related_name,
|
|
1517
|
+
related_query_name=related_query_name,
|
|
1518
|
+
limit_choices_to=limit_choices_to,
|
|
1519
|
+
symmetrical=symmetrical,
|
|
1520
|
+
through=through,
|
|
1521
|
+
through_fields=through_fields,
|
|
1522
|
+
db_constraint=db_constraint,
|
|
1523
|
+
)
|
|
1524
|
+
self.has_null_arg = "null" in kwargs
|
|
1525
|
+
|
|
1526
|
+
super().__init__(
|
|
1527
|
+
related_name=related_name,
|
|
1528
|
+
related_query_name=related_query_name,
|
|
1529
|
+
limit_choices_to=limit_choices_to,
|
|
1530
|
+
**kwargs,
|
|
1531
|
+
)
|
|
1532
|
+
|
|
1533
|
+
self.db_table = db_table
|
|
1534
|
+
self.swappable = swappable
|
|
1535
|
+
|
|
1536
|
+
def check(self, **kwargs):
|
|
1537
|
+
return [
|
|
1538
|
+
*super().check(**kwargs),
|
|
1539
|
+
*self._check_unique(**kwargs),
|
|
1540
|
+
*self._check_relationship_model(**kwargs),
|
|
1541
|
+
*self._check_ignored_options(**kwargs),
|
|
1542
|
+
*self._check_table_uniqueness(**kwargs),
|
|
1543
|
+
*self._check_on_delete(**kwargs),
|
|
1544
|
+
]
|
|
1545
|
+
|
|
1546
|
+
def _check_unique(self, **kwargs):
|
|
1547
|
+
if self.unique:
|
|
1548
|
+
return [
|
|
1549
|
+
checks.Error(
|
|
1550
|
+
"ManyToManyFields cannot be unique.",
|
|
1551
|
+
obj=self,
|
|
1552
|
+
id="fields.E330",
|
|
1553
|
+
)
|
|
1554
|
+
]
|
|
1555
|
+
return []
|
|
1556
|
+
|
|
1557
|
+
def _check_ignored_options(self, **kwargs):
|
|
1558
|
+
warnings = []
|
|
1559
|
+
|
|
1560
|
+
if self.has_null_arg:
|
|
1561
|
+
warnings.append(
|
|
1562
|
+
checks.Warning(
|
|
1563
|
+
"null has no effect on ManyToManyField.",
|
|
1564
|
+
obj=self,
|
|
1565
|
+
id="fields.W340",
|
|
1566
|
+
)
|
|
1567
|
+
)
|
|
1568
|
+
|
|
1569
|
+
if self._validators:
|
|
1570
|
+
warnings.append(
|
|
1571
|
+
checks.Warning(
|
|
1572
|
+
"ManyToManyField does not support validators.",
|
|
1573
|
+
obj=self,
|
|
1574
|
+
id="fields.W341",
|
|
1575
|
+
)
|
|
1576
|
+
)
|
|
1577
|
+
if self.remote_field.symmetrical and self._related_name:
|
|
1578
|
+
warnings.append(
|
|
1579
|
+
checks.Warning(
|
|
1580
|
+
"related_name has no effect on ManyToManyField "
|
|
1581
|
+
'with a symmetrical relationship, e.g. to "self".',
|
|
1582
|
+
obj=self,
|
|
1583
|
+
id="fields.W345",
|
|
1584
|
+
)
|
|
1585
|
+
)
|
|
1586
|
+
if self.db_comment:
|
|
1587
|
+
warnings.append(
|
|
1588
|
+
checks.Warning(
|
|
1589
|
+
"db_comment has no effect on ManyToManyField.",
|
|
1590
|
+
obj=self,
|
|
1591
|
+
id="fields.W346",
|
|
1592
|
+
)
|
|
1593
|
+
)
|
|
1594
|
+
|
|
1595
|
+
return warnings
|
|
1596
|
+
|
|
1597
|
+
def _check_relationship_model(self, from_model=None, **kwargs):
|
|
1598
|
+
from django.db.models.fields.composite import CompositePrimaryKey
|
|
1599
|
+
|
|
1600
|
+
if hasattr(self.remote_field.through, "_meta"):
|
|
1601
|
+
qualified_model_name = "%s.%s" % (
|
|
1602
|
+
self.remote_field.through._meta.app_label,
|
|
1603
|
+
self.remote_field.through.__name__,
|
|
1604
|
+
)
|
|
1605
|
+
else:
|
|
1606
|
+
qualified_model_name = self.remote_field.through
|
|
1607
|
+
|
|
1608
|
+
errors = []
|
|
1609
|
+
|
|
1610
|
+
if self.remote_field.through not in self.opts.apps.get_models(
|
|
1611
|
+
include_auto_created=True
|
|
1612
|
+
):
|
|
1613
|
+
# The relationship model is not installed.
|
|
1614
|
+
errors.append(
|
|
1615
|
+
checks.Error(
|
|
1616
|
+
"Field specifies a many-to-many relation through model "
|
|
1617
|
+
"'%s', which has not been installed." % qualified_model_name,
|
|
1618
|
+
obj=self,
|
|
1619
|
+
id="fields.E331",
|
|
1620
|
+
)
|
|
1621
|
+
)
|
|
1622
|
+
|
|
1623
|
+
else:
|
|
1624
|
+
assert from_model is not None, (
|
|
1625
|
+
"ManyToManyField with intermediate "
|
|
1626
|
+
"tables cannot be checked if you don't pass the model "
|
|
1627
|
+
"where the field is attached to."
|
|
1628
|
+
)
|
|
1629
|
+
# Set some useful local variables
|
|
1630
|
+
to_model = resolve_relation(from_model, self.remote_field.model)
|
|
1631
|
+
from_model_name = from_model._meta.object_name
|
|
1632
|
+
if isinstance(to_model, str):
|
|
1633
|
+
to_model_name = to_model
|
|
1634
|
+
else:
|
|
1635
|
+
to_model_name = to_model._meta.object_name
|
|
1636
|
+
if self.remote_field.through_fields is None and not isinstance(
|
|
1637
|
+
to_model, str
|
|
1638
|
+
):
|
|
1639
|
+
model_name = None
|
|
1640
|
+
if isinstance(to_model._meta.pk, CompositePrimaryKey):
|
|
1641
|
+
model_name = self.remote_field.model._meta.object_name
|
|
1642
|
+
elif isinstance(from_model._meta.pk, CompositePrimaryKey):
|
|
1643
|
+
model_name = from_model_name
|
|
1644
|
+
if model_name:
|
|
1645
|
+
errors.append(
|
|
1646
|
+
checks.Error(
|
|
1647
|
+
f"Field defines a relation involving model {model_name!r} "
|
|
1648
|
+
"which has a CompositePrimaryKey and such relations are "
|
|
1649
|
+
"not supported.",
|
|
1650
|
+
obj=self,
|
|
1651
|
+
id="fields.E347",
|
|
1652
|
+
)
|
|
1653
|
+
)
|
|
1654
|
+
relationship_model_name = self.remote_field.through._meta.object_name
|
|
1655
|
+
self_referential = from_model == to_model
|
|
1656
|
+
# Count foreign keys in intermediate model
|
|
1657
|
+
if self_referential:
|
|
1658
|
+
seen_self = sum(
|
|
1659
|
+
from_model == getattr(field.remote_field, "model", None)
|
|
1660
|
+
for field in self.remote_field.through._meta.fields
|
|
1661
|
+
)
|
|
1662
|
+
|
|
1663
|
+
if seen_self > 2 and not self.remote_field.through_fields:
|
|
1664
|
+
errors.append(
|
|
1665
|
+
checks.Error(
|
|
1666
|
+
"The model is used as an intermediate model by "
|
|
1667
|
+
"'%s', but it has more than two foreign keys "
|
|
1668
|
+
"to '%s', which is ambiguous. You must specify "
|
|
1669
|
+
"which two foreign keys Django should use via the "
|
|
1670
|
+
"through_fields keyword argument."
|
|
1671
|
+
% (self, from_model_name),
|
|
1672
|
+
hint=(
|
|
1673
|
+
"Use through_fields to specify which two foreign keys "
|
|
1674
|
+
"Django should use."
|
|
1675
|
+
),
|
|
1676
|
+
obj=self.remote_field.through,
|
|
1677
|
+
id="fields.E333",
|
|
1678
|
+
)
|
|
1679
|
+
)
|
|
1680
|
+
|
|
1681
|
+
else:
|
|
1682
|
+
# Count foreign keys in relationship model
|
|
1683
|
+
seen_from = sum(
|
|
1684
|
+
from_model == getattr(field.remote_field, "model", None)
|
|
1685
|
+
for field in self.remote_field.through._meta.fields
|
|
1686
|
+
)
|
|
1687
|
+
seen_to = sum(
|
|
1688
|
+
to_model == getattr(field.remote_field, "model", None)
|
|
1689
|
+
for field in self.remote_field.through._meta.fields
|
|
1690
|
+
)
|
|
1691
|
+
|
|
1692
|
+
if seen_from > 1 and not self.remote_field.through_fields:
|
|
1693
|
+
errors.append(
|
|
1694
|
+
checks.Error(
|
|
1695
|
+
(
|
|
1696
|
+
"The model is used as an intermediate model by "
|
|
1697
|
+
"'%s', but it has more than one foreign key "
|
|
1698
|
+
"from '%s', which is ambiguous. You must specify "
|
|
1699
|
+
"which foreign key Django should use via the "
|
|
1700
|
+
"through_fields keyword argument."
|
|
1701
|
+
)
|
|
1702
|
+
% (self, from_model_name),
|
|
1703
|
+
hint=(
|
|
1704
|
+
"If you want to create a recursive relationship, "
|
|
1705
|
+
'use ManyToManyField("%s", through="%s").'
|
|
1706
|
+
)
|
|
1707
|
+
% (
|
|
1708
|
+
RECURSIVE_RELATIONSHIP_CONSTANT,
|
|
1709
|
+
relationship_model_name,
|
|
1710
|
+
),
|
|
1711
|
+
obj=self,
|
|
1712
|
+
id="fields.E334",
|
|
1713
|
+
)
|
|
1714
|
+
)
|
|
1715
|
+
|
|
1716
|
+
if seen_to > 1 and not self.remote_field.through_fields:
|
|
1717
|
+
errors.append(
|
|
1718
|
+
checks.Error(
|
|
1719
|
+
"The model is used as an intermediate model by "
|
|
1720
|
+
"'%s', but it has more than one foreign key "
|
|
1721
|
+
"to '%s', which is ambiguous. You must specify "
|
|
1722
|
+
"which foreign key Django should use via the "
|
|
1723
|
+
"through_fields keyword argument." % (self, to_model_name),
|
|
1724
|
+
hint=(
|
|
1725
|
+
"If you want to create a recursive relationship, "
|
|
1726
|
+
'use ManyToManyField("%s", through="%s").'
|
|
1727
|
+
)
|
|
1728
|
+
% (
|
|
1729
|
+
RECURSIVE_RELATIONSHIP_CONSTANT,
|
|
1730
|
+
relationship_model_name,
|
|
1731
|
+
),
|
|
1732
|
+
obj=self,
|
|
1733
|
+
id="fields.E335",
|
|
1734
|
+
)
|
|
1735
|
+
)
|
|
1736
|
+
|
|
1737
|
+
if seen_from == 0 or seen_to == 0:
|
|
1738
|
+
errors.append(
|
|
1739
|
+
checks.Error(
|
|
1740
|
+
"The model is used as an intermediate model by "
|
|
1741
|
+
"'%s', but it does not have a foreign key to '%s' or '%s'."
|
|
1742
|
+
% (self, from_model_name, to_model_name),
|
|
1743
|
+
obj=self.remote_field.through,
|
|
1744
|
+
id="fields.E336",
|
|
1745
|
+
)
|
|
1746
|
+
)
|
|
1747
|
+
|
|
1748
|
+
# Validate `through_fields`.
|
|
1749
|
+
if self.remote_field.through_fields is not None:
|
|
1750
|
+
# Validate that we're given an iterable of at least two items
|
|
1751
|
+
# and that none of them is "falsy".
|
|
1752
|
+
if not (
|
|
1753
|
+
len(self.remote_field.through_fields) >= 2
|
|
1754
|
+
and self.remote_field.through_fields[0]
|
|
1755
|
+
and self.remote_field.through_fields[1]
|
|
1756
|
+
):
|
|
1757
|
+
errors.append(
|
|
1758
|
+
checks.Error(
|
|
1759
|
+
"Field specifies 'through_fields' but does not provide "
|
|
1760
|
+
"the names of the two link fields that should be used "
|
|
1761
|
+
"for the relation through model '%s'." % qualified_model_name,
|
|
1762
|
+
hint=(
|
|
1763
|
+
"Make sure you specify 'through_fields' as "
|
|
1764
|
+
"through_fields=('field1', 'field2')"
|
|
1765
|
+
),
|
|
1766
|
+
obj=self,
|
|
1767
|
+
id="fields.E337",
|
|
1768
|
+
)
|
|
1769
|
+
)
|
|
1770
|
+
|
|
1771
|
+
# Validate the given through fields -- they should be actual
|
|
1772
|
+
# fields on the through model, and also be foreign keys to the
|
|
1773
|
+
# expected models.
|
|
1774
|
+
else:
|
|
1775
|
+
assert from_model is not None, (
|
|
1776
|
+
"ManyToManyField with intermediate "
|
|
1777
|
+
"tables cannot be checked if you don't pass the model "
|
|
1778
|
+
"where the field is attached to."
|
|
1779
|
+
)
|
|
1780
|
+
|
|
1781
|
+
source, through, target = (
|
|
1782
|
+
from_model,
|
|
1783
|
+
self.remote_field.through,
|
|
1784
|
+
self.remote_field.model,
|
|
1785
|
+
)
|
|
1786
|
+
source_field_name, target_field_name = self.remote_field.through_fields[
|
|
1787
|
+
:2
|
|
1788
|
+
]
|
|
1789
|
+
|
|
1790
|
+
for field_name, related_model in (
|
|
1791
|
+
(source_field_name, source),
|
|
1792
|
+
(target_field_name, target),
|
|
1793
|
+
):
|
|
1794
|
+
possible_field_names = []
|
|
1795
|
+
for f in through._meta.fields:
|
|
1796
|
+
if (
|
|
1797
|
+
hasattr(f, "remote_field")
|
|
1798
|
+
and getattr(f.remote_field, "model", None) == related_model
|
|
1799
|
+
):
|
|
1800
|
+
possible_field_names.append(f.name)
|
|
1801
|
+
if possible_field_names:
|
|
1802
|
+
hint = (
|
|
1803
|
+
"Did you mean one of the following foreign keys to '%s': "
|
|
1804
|
+
"%s?"
|
|
1805
|
+
% (
|
|
1806
|
+
related_model._meta.object_name,
|
|
1807
|
+
", ".join(possible_field_names),
|
|
1808
|
+
)
|
|
1809
|
+
)
|
|
1810
|
+
else:
|
|
1811
|
+
hint = None
|
|
1812
|
+
|
|
1813
|
+
try:
|
|
1814
|
+
field = through._meta.get_field(field_name)
|
|
1815
|
+
except exceptions.FieldDoesNotExist:
|
|
1816
|
+
errors.append(
|
|
1817
|
+
checks.Error(
|
|
1818
|
+
"The intermediary model '%s' has no field '%s'."
|
|
1819
|
+
% (qualified_model_name, field_name),
|
|
1820
|
+
hint=hint,
|
|
1821
|
+
obj=self,
|
|
1822
|
+
id="fields.E338",
|
|
1823
|
+
)
|
|
1824
|
+
)
|
|
1825
|
+
else:
|
|
1826
|
+
if not (
|
|
1827
|
+
hasattr(field, "remote_field")
|
|
1828
|
+
and getattr(field.remote_field, "model", None)
|
|
1829
|
+
== related_model
|
|
1830
|
+
):
|
|
1831
|
+
related_object_name = (
|
|
1832
|
+
related_model
|
|
1833
|
+
if isinstance(related_model, str)
|
|
1834
|
+
else related_model._meta.object_name
|
|
1835
|
+
)
|
|
1836
|
+
errors.append(
|
|
1837
|
+
checks.Error(
|
|
1838
|
+
"'%s.%s' is not a foreign key to '%s'."
|
|
1839
|
+
% (
|
|
1840
|
+
through._meta.object_name,
|
|
1841
|
+
field_name,
|
|
1842
|
+
related_object_name,
|
|
1843
|
+
),
|
|
1844
|
+
hint=hint,
|
|
1845
|
+
obj=self,
|
|
1846
|
+
id="fields.E339",
|
|
1847
|
+
)
|
|
1848
|
+
)
|
|
1849
|
+
|
|
1850
|
+
return errors
|
|
1851
|
+
|
|
1852
|
+
def _check_table_uniqueness(self, **kwargs):
|
|
1853
|
+
if (
|
|
1854
|
+
isinstance(self.remote_field.through, str)
|
|
1855
|
+
or not self.remote_field.through._meta.managed
|
|
1856
|
+
):
|
|
1857
|
+
return []
|
|
1858
|
+
registered_tables = {
|
|
1859
|
+
model._meta.db_table: model
|
|
1860
|
+
for model in self.opts.apps.get_models(include_auto_created=True)
|
|
1861
|
+
if model != self.remote_field.through and model._meta.managed
|
|
1862
|
+
}
|
|
1863
|
+
m2m_db_table = self.m2m_db_table()
|
|
1864
|
+
model = registered_tables.get(m2m_db_table)
|
|
1865
|
+
# The second condition allows multiple m2m relations on a model if
|
|
1866
|
+
# some point to a through model that proxies another through model.
|
|
1867
|
+
if (
|
|
1868
|
+
model
|
|
1869
|
+
and model._meta.concrete_model
|
|
1870
|
+
!= self.remote_field.through._meta.concrete_model
|
|
1871
|
+
):
|
|
1872
|
+
if model._meta.auto_created:
|
|
1873
|
+
|
|
1874
|
+
def _get_field_name(model):
|
|
1875
|
+
for field in model._meta.auto_created._meta.many_to_many:
|
|
1876
|
+
if field.remote_field.through is model:
|
|
1877
|
+
return field.name
|
|
1878
|
+
|
|
1879
|
+
opts = model._meta.auto_created._meta
|
|
1880
|
+
clashing_obj = "%s.%s" % (opts.label, _get_field_name(model))
|
|
1881
|
+
else:
|
|
1882
|
+
clashing_obj = model._meta.label
|
|
1883
|
+
if settings.DATABASE_ROUTERS:
|
|
1884
|
+
error_class, error_id = checks.Warning, "fields.W344"
|
|
1885
|
+
error_hint = (
|
|
1886
|
+
"You have configured settings.DATABASE_ROUTERS. Verify "
|
|
1887
|
+
"that the table of %r is correctly routed to a separate "
|
|
1888
|
+
"database." % clashing_obj
|
|
1889
|
+
)
|
|
1890
|
+
else:
|
|
1891
|
+
error_class, error_id = checks.Error, "fields.E340"
|
|
1892
|
+
error_hint = None
|
|
1893
|
+
return [
|
|
1894
|
+
error_class(
|
|
1895
|
+
"The field's intermediary table '%s' clashes with the "
|
|
1896
|
+
"table name of '%s'." % (m2m_db_table, clashing_obj),
|
|
1897
|
+
obj=self,
|
|
1898
|
+
hint=error_hint,
|
|
1899
|
+
id=error_id,
|
|
1900
|
+
)
|
|
1901
|
+
]
|
|
1902
|
+
return []
|
|
1903
|
+
|
|
1904
|
+
def _check_on_delete(self, **kwargs):
|
|
1905
|
+
errors = []
|
|
1906
|
+
if (
|
|
1907
|
+
isinstance(self.remote_field.through, str)
|
|
1908
|
+
or not self.remote_field.through._meta.auto_created
|
|
1909
|
+
):
|
|
1910
|
+
# Manually created through models are checked on their own.
|
|
1911
|
+
return []
|
|
1912
|
+
# Database and Python cascade variants cannot be mixed in a chain of
|
|
1913
|
+
# model references. Auto-created through models are using Python
|
|
1914
|
+
# variants.
|
|
1915
|
+
m2m_through_remote_fields = (
|
|
1916
|
+
m2m_model_field.remote_field
|
|
1917
|
+
for m2m_model_field in self.remote_field.through._meta.get_fields()
|
|
1918
|
+
if m2m_model_field.remote_field
|
|
1919
|
+
and not isinstance(m2m_model_field.remote_field.model, str)
|
|
1920
|
+
)
|
|
1921
|
+
ref_model_fields = (
|
|
1922
|
+
ref_model_field
|
|
1923
|
+
for remote_field in m2m_through_remote_fields
|
|
1924
|
+
for ref_model_field in remote_field.model._meta.get_fields()
|
|
1925
|
+
if ref_model_field.related_model
|
|
1926
|
+
and hasattr(ref_model_field.remote_field, "on_delete")
|
|
1927
|
+
)
|
|
1928
|
+
for ref_model_field in ref_model_fields:
|
|
1929
|
+
if (
|
|
1930
|
+
ref_model_field.remote_field.on_delete is not None
|
|
1931
|
+
and ref_model_field.remote_field.on_delete != DO_NOTHING
|
|
1932
|
+
and isinstance(ref_model_field.remote_field.on_delete, DatabaseOnDelete)
|
|
1933
|
+
):
|
|
1934
|
+
errors.append(
|
|
1935
|
+
checks.Error(
|
|
1936
|
+
"Field specifies database-level on_delete variant, but "
|
|
1937
|
+
"auto-created intermediary model uses Python-level variant.",
|
|
1938
|
+
hint=(
|
|
1939
|
+
"Use either one of the Python on_delete variants or "
|
|
1940
|
+
f"create a through model for {self}."
|
|
1941
|
+
),
|
|
1942
|
+
obj=ref_model_field,
|
|
1943
|
+
id="fields.E323",
|
|
1944
|
+
)
|
|
1945
|
+
)
|
|
1946
|
+
return errors
|
|
1947
|
+
|
|
1948
|
+
def deconstruct(self):
|
|
1949
|
+
name, path, args, kwargs = super().deconstruct()
|
|
1950
|
+
# Handle the simpler arguments.
|
|
1951
|
+
if self.db_table is not None:
|
|
1952
|
+
kwargs["db_table"] = self.db_table
|
|
1953
|
+
if self.remote_field.db_constraint is not True:
|
|
1954
|
+
kwargs["db_constraint"] = self.remote_field.db_constraint
|
|
1955
|
+
# Lowercase model names as they should be treated as case-insensitive.
|
|
1956
|
+
if isinstance(self.remote_field.model, str):
|
|
1957
|
+
if "." in self.remote_field.model:
|
|
1958
|
+
app_label, model_name = self.remote_field.model.split(".")
|
|
1959
|
+
kwargs["to"] = "%s.%s" % (app_label, model_name.lower())
|
|
1960
|
+
else:
|
|
1961
|
+
kwargs["to"] = self.remote_field.model.lower()
|
|
1962
|
+
else:
|
|
1963
|
+
kwargs["to"] = self.remote_field.model._meta.label_lower
|
|
1964
|
+
if getattr(self.remote_field, "through", None) is not None:
|
|
1965
|
+
if isinstance(self.remote_field.through, str):
|
|
1966
|
+
kwargs["through"] = self.remote_field.through
|
|
1967
|
+
elif not self.remote_field.through._meta.auto_created:
|
|
1968
|
+
kwargs["through"] = self.remote_field.through._meta.label
|
|
1969
|
+
if through_fields := getattr(self.remote_field, "through_fields", None):
|
|
1970
|
+
kwargs["through_fields"] = through_fields
|
|
1971
|
+
# If swappable is True, then see if we're actually pointing to the
|
|
1972
|
+
# target of a swap.
|
|
1973
|
+
swappable_setting = self.swappable_setting
|
|
1974
|
+
if swappable_setting is not None:
|
|
1975
|
+
# If it's already a settings reference, error.
|
|
1976
|
+
if hasattr(kwargs["to"], "setting_name"):
|
|
1977
|
+
if kwargs["to"].setting_name != swappable_setting:
|
|
1978
|
+
raise ValueError(
|
|
1979
|
+
"Cannot deconstruct a ManyToManyField pointing to a "
|
|
1980
|
+
"model that is swapped in place of more than one model "
|
|
1981
|
+
"(%s and %s)" % (kwargs["to"].setting_name, swappable_setting)
|
|
1982
|
+
)
|
|
1983
|
+
|
|
1984
|
+
kwargs["to"] = SettingsReference(
|
|
1985
|
+
kwargs["to"],
|
|
1986
|
+
swappable_setting,
|
|
1987
|
+
)
|
|
1988
|
+
return name, path, args, kwargs
|
|
1989
|
+
|
|
1990
|
+
def get_attname_column(self):
|
|
1991
|
+
attname, _ = super().get_attname_column()
|
|
1992
|
+
return attname, None
|
|
1993
|
+
|
|
1994
|
+
def _get_path_info(self, direct=False, filtered_relation=None):
|
|
1995
|
+
"""Called by both direct and indirect m2m traversal."""
|
|
1996
|
+
int_model = self.remote_field.through
|
|
1997
|
+
linkfield1 = int_model._meta.get_field(self.m2m_field_name())
|
|
1998
|
+
linkfield2 = int_model._meta.get_field(self.m2m_reverse_field_name())
|
|
1999
|
+
if direct:
|
|
2000
|
+
join1infos = linkfield1.reverse_path_infos
|
|
2001
|
+
if filtered_relation:
|
|
2002
|
+
join2infos = linkfield2.get_path_info(filtered_relation)
|
|
2003
|
+
else:
|
|
2004
|
+
join2infos = linkfield2.path_infos
|
|
2005
|
+
else:
|
|
2006
|
+
join1infos = linkfield2.reverse_path_infos
|
|
2007
|
+
if filtered_relation:
|
|
2008
|
+
join2infos = linkfield1.get_path_info(filtered_relation)
|
|
2009
|
+
else:
|
|
2010
|
+
join2infos = linkfield1.path_infos
|
|
2011
|
+
# Get join infos between the last model of join 1 and the first model
|
|
2012
|
+
# of join 2. Assume the only reason these may differ is due to model
|
|
2013
|
+
# inheritance.
|
|
2014
|
+
join1_final = join1infos[-1].to_opts
|
|
2015
|
+
join2_initial = join2infos[0].from_opts
|
|
2016
|
+
if join1_final is join2_initial:
|
|
2017
|
+
intermediate_infos = []
|
|
2018
|
+
elif issubclass(join1_final.model, join2_initial.model):
|
|
2019
|
+
intermediate_infos = join1_final.get_path_to_parent(join2_initial.model)
|
|
2020
|
+
else:
|
|
2021
|
+
intermediate_infos = join2_initial.get_path_from_parent(join1_final.model)
|
|
2022
|
+
|
|
2023
|
+
return [*join1infos, *intermediate_infos, *join2infos]
|
|
2024
|
+
|
|
2025
|
+
def get_path_info(self, filtered_relation=None):
|
|
2026
|
+
return self._get_path_info(direct=True, filtered_relation=filtered_relation)
|
|
2027
|
+
|
|
2028
|
+
@cached_property
|
|
2029
|
+
def path_infos(self):
|
|
2030
|
+
return self.get_path_info()
|
|
2031
|
+
|
|
2032
|
+
def get_reverse_path_info(self, filtered_relation=None):
|
|
2033
|
+
return self._get_path_info(direct=False, filtered_relation=filtered_relation)
|
|
2034
|
+
|
|
2035
|
+
@cached_property
|
|
2036
|
+
def reverse_path_infos(self):
|
|
2037
|
+
return self.get_reverse_path_info()
|
|
2038
|
+
|
|
2039
|
+
def _get_m2m_db_table(self, opts):
|
|
2040
|
+
"""
|
|
2041
|
+
Function that can be curried to provide the m2m table name for this
|
|
2042
|
+
relation.
|
|
2043
|
+
"""
|
|
2044
|
+
if self.remote_field.through is not None:
|
|
2045
|
+
return self.remote_field.through._meta.db_table
|
|
2046
|
+
elif self.db_table:
|
|
2047
|
+
return self.db_table
|
|
2048
|
+
else:
|
|
2049
|
+
m2m_table_name = "%s_%s" % (utils.strip_quotes(opts.db_table), self.name)
|
|
2050
|
+
return utils.truncate_name(m2m_table_name, connection.ops.max_name_length())
|
|
2051
|
+
|
|
2052
|
+
def _get_m2m_attr(self, related, attr):
|
|
2053
|
+
"""
|
|
2054
|
+
Function that can be curried to provide the source accessor or DB
|
|
2055
|
+
column name for the m2m table.
|
|
2056
|
+
"""
|
|
2057
|
+
cache_attr = "_m2m_%s_cache" % attr
|
|
2058
|
+
if hasattr(self, cache_attr):
|
|
2059
|
+
return getattr(self, cache_attr)
|
|
2060
|
+
if self.remote_field.through_fields is not None:
|
|
2061
|
+
link_field_name = self.remote_field.through_fields[0]
|
|
2062
|
+
else:
|
|
2063
|
+
link_field_name = None
|
|
2064
|
+
for f in self.remote_field.through._meta.fields:
|
|
2065
|
+
if (
|
|
2066
|
+
f.is_relation
|
|
2067
|
+
and f.remote_field.model == related.related_model
|
|
2068
|
+
and (link_field_name is None or link_field_name == f.name)
|
|
2069
|
+
):
|
|
2070
|
+
setattr(self, cache_attr, getattr(f, attr))
|
|
2071
|
+
return getattr(self, cache_attr)
|
|
2072
|
+
|
|
2073
|
+
def _get_m2m_reverse_attr(self, related, attr):
|
|
2074
|
+
"""
|
|
2075
|
+
Function that can be curried to provide the related accessor or DB
|
|
2076
|
+
column name for the m2m table.
|
|
2077
|
+
"""
|
|
2078
|
+
cache_attr = "_m2m_reverse_%s_cache" % attr
|
|
2079
|
+
if hasattr(self, cache_attr):
|
|
2080
|
+
return getattr(self, cache_attr)
|
|
2081
|
+
found = False
|
|
2082
|
+
if self.remote_field.through_fields is not None:
|
|
2083
|
+
link_field_name = self.remote_field.through_fields[1]
|
|
2084
|
+
else:
|
|
2085
|
+
link_field_name = None
|
|
2086
|
+
for f in self.remote_field.through._meta.fields:
|
|
2087
|
+
if f.is_relation and f.remote_field.model == related.model:
|
|
2088
|
+
if link_field_name is None and related.related_model == related.model:
|
|
2089
|
+
# If this is an m2m-intermediate to self,
|
|
2090
|
+
# the first foreign key you find will be
|
|
2091
|
+
# the source column. Keep searching for
|
|
2092
|
+
# the second foreign key.
|
|
2093
|
+
if found:
|
|
2094
|
+
setattr(self, cache_attr, getattr(f, attr))
|
|
2095
|
+
break
|
|
2096
|
+
else:
|
|
2097
|
+
found = True
|
|
2098
|
+
elif link_field_name is None or link_field_name == f.name:
|
|
2099
|
+
setattr(self, cache_attr, getattr(f, attr))
|
|
2100
|
+
break
|
|
2101
|
+
return getattr(self, cache_attr)
|
|
2102
|
+
|
|
2103
|
+
def contribute_to_class(self, cls, name, **kwargs):
|
|
2104
|
+
# To support multiple relations to self, it's useful to have a non-None
|
|
2105
|
+
# related name on symmetrical relations for internal reasons. The
|
|
2106
|
+
# concept doesn't make a lot of sense externally ("you want me to
|
|
2107
|
+
# specify *what* on my non-reversible relation?!"), so we set it up
|
|
2108
|
+
# automatically. The funky name reduces the chance of an accidental
|
|
2109
|
+
# clash.
|
|
2110
|
+
if self.remote_field.symmetrical and (
|
|
2111
|
+
self.remote_field.model == RECURSIVE_RELATIONSHIP_CONSTANT
|
|
2112
|
+
or self.remote_field.model == cls._meta.object_name
|
|
2113
|
+
):
|
|
2114
|
+
self.remote_field.related_name = "%s_rel_+" % name
|
|
2115
|
+
elif self.remote_field.hidden:
|
|
2116
|
+
# If the backwards relation is disabled, replace the original
|
|
2117
|
+
# related_name with one generated from the m2m field name. Django
|
|
2118
|
+
# still uses backwards relations internally and we need to avoid
|
|
2119
|
+
# clashes between multiple m2m fields with related_name == '+'.
|
|
2120
|
+
self.remote_field.related_name = "_%s_%s_%s_+" % (
|
|
2121
|
+
cls._meta.app_label,
|
|
2122
|
+
cls.__name__.lower(),
|
|
2123
|
+
name,
|
|
2124
|
+
)
|
|
2125
|
+
|
|
2126
|
+
super().contribute_to_class(cls, name, **kwargs)
|
|
2127
|
+
|
|
2128
|
+
# The intermediate m2m model is not auto created if:
|
|
2129
|
+
# 1) There is a manually specified intermediate, or
|
|
2130
|
+
# 2) The class owning the m2m field is abstract.
|
|
2131
|
+
# 3) The class owning the m2m field has been swapped out.
|
|
2132
|
+
if not cls._meta.abstract:
|
|
2133
|
+
if self.remote_field.through:
|
|
2134
|
+
|
|
2135
|
+
def resolve_through_model(_, model, field):
|
|
2136
|
+
field.remote_field.through = model
|
|
2137
|
+
|
|
2138
|
+
lazy_related_operation(
|
|
2139
|
+
resolve_through_model, cls, self.remote_field.through, field=self
|
|
2140
|
+
)
|
|
2141
|
+
elif not cls._meta.swapped:
|
|
2142
|
+
self.remote_field.through = create_many_to_many_intermediary_model(
|
|
2143
|
+
self, cls
|
|
2144
|
+
)
|
|
2145
|
+
|
|
2146
|
+
# Add the descriptor for the m2m relation.
|
|
2147
|
+
setattr(cls, self.name, ManyToManyDescriptor(self.remote_field, reverse=False))
|
|
2148
|
+
|
|
2149
|
+
# Set up the accessor for the m2m table name for the relation.
|
|
2150
|
+
self.m2m_db_table = partial(self._get_m2m_db_table, cls._meta)
|
|
2151
|
+
|
|
2152
|
+
def contribute_to_related_class(self, cls, related):
|
|
2153
|
+
# Internal M2Ms (i.e., those with a related name ending with '+')
|
|
2154
|
+
# and swapped models don't get a related descriptor.
|
|
2155
|
+
if not self.remote_field.hidden and not related.related_model._meta.swapped:
|
|
2156
|
+
setattr(
|
|
2157
|
+
cls,
|
|
2158
|
+
related.accessor_name,
|
|
2159
|
+
ManyToManyDescriptor(self.remote_field, reverse=True),
|
|
2160
|
+
)
|
|
2161
|
+
|
|
2162
|
+
# Set up the accessors for the column names on the m2m table.
|
|
2163
|
+
self.m2m_column_name = partial(self._get_m2m_attr, related, "column")
|
|
2164
|
+
self.m2m_reverse_name = partial(self._get_m2m_reverse_attr, related, "column")
|
|
2165
|
+
|
|
2166
|
+
self.m2m_field_name = partial(self._get_m2m_attr, related, "name")
|
|
2167
|
+
self.m2m_reverse_field_name = partial(
|
|
2168
|
+
self._get_m2m_reverse_attr, related, "name"
|
|
2169
|
+
)
|
|
2170
|
+
|
|
2171
|
+
get_m2m_rel = partial(self._get_m2m_attr, related, "remote_field")
|
|
2172
|
+
self.m2m_target_field_name = lambda: get_m2m_rel().field_name
|
|
2173
|
+
get_m2m_reverse_rel = partial(
|
|
2174
|
+
self._get_m2m_reverse_attr, related, "remote_field"
|
|
2175
|
+
)
|
|
2176
|
+
self.m2m_reverse_target_field_name = lambda: get_m2m_reverse_rel().field_name
|
|
2177
|
+
|
|
2178
|
+
def set_attributes_from_rel(self):
|
|
2179
|
+
pass
|
|
2180
|
+
|
|
2181
|
+
def value_from_object(self, obj):
|
|
2182
|
+
return list(getattr(obj, self.attname).all()) if obj._is_pk_set() else []
|
|
2183
|
+
|
|
2184
|
+
def save_form_data(self, instance, data):
|
|
2185
|
+
getattr(instance, self.attname).set(data)
|
|
2186
|
+
|
|
2187
|
+
def formfield(self, *, using=None, **kwargs):
|
|
2188
|
+
defaults = {
|
|
2189
|
+
"form_class": forms.ModelMultipleChoiceField,
|
|
2190
|
+
"queryset": self.remote_field.model._default_manager.using(using),
|
|
2191
|
+
**kwargs,
|
|
2192
|
+
}
|
|
2193
|
+
# If initial is passed in, it's a list of related objects, but the
|
|
2194
|
+
# MultipleChoiceField takes a list of IDs.
|
|
2195
|
+
if defaults.get("initial") is not None:
|
|
2196
|
+
initial = defaults["initial"]
|
|
2197
|
+
if callable(initial):
|
|
2198
|
+
initial = initial()
|
|
2199
|
+
defaults["initial"] = [i.pk for i in initial]
|
|
2200
|
+
return super().formfield(**defaults)
|
|
2201
|
+
|
|
2202
|
+
def db_check(self, connection):
|
|
2203
|
+
return None
|
|
2204
|
+
|
|
2205
|
+
def db_type(self, connection):
|
|
2206
|
+
# A ManyToManyField is not represented by a single column,
|
|
2207
|
+
# so return None.
|
|
2208
|
+
return None
|
|
2209
|
+
|
|
2210
|
+
def db_parameters(self, connection):
|
|
2211
|
+
return {"type": None, "check": None}
|