1
0
mirror of https://github.com/django/django.git synced 2025-07-06 02:39:12 +00:00

7300 Commits

Author SHA1 Message Date
Joseph Kocherhans
3e9035a962 [soc2009/model-validation] Minor edits to form validation docs.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12096 bcc190cf-cafb-0310-a4f2-bffc1f526a37
archive/soc2009/model-validation
2010-01-05 01:21:41 +00:00
Joseph Kocherhans
73d7f4671b [soc2009/model-validation] Fixed a discrepancy from a previous merge.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-05 00:57:16 +00:00
Joseph Kocherhans
0b5c67a746 [soc2009/model-validation] Merged from trunk up to [12093].
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-05 00:39:42 +00:00
Joseph Kocherhans
6e8d2dd4fb [soc2009/model-validation] Blocked up through [12070] from svnmerge.py.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-05 00:31:30 +00:00
Joseph Kocherhans
7ec7f38b39 [soc2009/model-validation] Initalized svnmerge.py tracking.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-05 00:21:21 +00:00
Joseph Kocherhans
1f98e98106 [soc2009/model-validation] Removed references in the docs to ComplexValidator. Refs [12498].
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-04 23:52:03 +00:00
Joseph Kocherhans
82c4f9d04e [soc2009/model-validation] Combined save_made_instance and save_instnace for simplicity.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-04 23:34:54 +00:00
Joseph Kocherhans
a54ed5ad1e [soc2009/model-validation] Removed the ComplexValidator code in preparation for merging this branch into trunk. It will likely come back in some other form sometime after the merge.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12078 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-04 02:16:36 +00:00
Honza Král
556132f75b [soc2009/model-validation] removed directory accidentaly committed
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12077 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-04 01:57:54 +00:00
Honza Král
891c34ddd0 [soc2009/model-validation] avoid check for blank=True on User.password in UserCreationForm
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12076 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-04 01:57:36 +00:00
Honza Král
a3ad787308 [soc2009/model-validation] Typo. Thanks Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-04 01:07:09 +00:00
Honza Král
409efbf57c [socc2009/model-validation] Fixed imports on newly added localflavors
Also included an import to django.forms.fields for backwards compatibility.

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12074 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-04 01:06:54 +00:00
Honza Král
ffd5564a87 [soc2009/model-validation] Merged to trunk at r12070
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12073 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-04 01:06:26 +00:00
Honza Král
a7c320fea7 [soc2009/model-validation] Raise UnresolvableValidationError if an error occurs on excluded field
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-04 00:22:13 +00:00
Joseph Kocherhans
23a3c08bbb [soc2009/model-validation] Fixed a typo in the models/instances documentation.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-01 21:14:12 +00:00
Joseph Kocherhans
a907e15cad [soc2009/model-validation] Renamed Model's clean method to full_validate to be more consistent with django.forms.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-01 21:11:57 +00:00
Joseph Kocherhans
c2a2b51ac3 [soc2009/model-validation] Cleaned up some comments and whitespace.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12038 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-01 20:30:17 +00:00
Honza Král
201d171d9d [soc2009/model-validation] removed some unused tests
This behavior is covered by existing form tests

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-29 04:05:33 +00:00
Honza Král
c4767e642a [soc2009/model-validation] Added some comments to explain why I set DEBUG in tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-29 04:05:17 +00:00
Honza Král
c3e94faa23 [soc2009/model-validation] Migrated CharField to use validators
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-29 04:04:59 +00:00
Honza Král
22795e154f [soc2009/model-validation] Removing some unused code
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12017 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-29 04:04:36 +00:00
Joseph Kocherhans
8c62b72c06 [soc2009/model-validation] Fixed some merge issues from [12014].
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12016 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-29 02:53:26 +00:00
Honza Král
5559eb56fe [soc2009/model-validation] Fixed #12078 ValidationError(s) from specific fields not rendered on admin add/change form.
Thanks to Killarny for detailed report

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-28 17:41:56 +00:00
Honza Král
f911df19a4 [soc2009/model-validation] Merget to trunk at r12009
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12014 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-28 16:35:23 +00:00
Honza Král
695de8cc91 [soc2009/model-validation] Fixed #12132: unneccessary unique_check for primary key when not adding model
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-13 21:39:46 +00:00
Honza Král
3b895d4a9a [soc2009/model-validation] Merged to trunk at r11791
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11798 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-07 01:41:26 +00:00
Honza Král
30ea350dab [soc2009/model-validation] Merged to trunk at r11724
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11725 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-07 17:09:09 +00:00
Honza Král
dfe495fbe8 [soc2009/model-validation] Merged to trunk at r11603
SECURITY ALERT: Corrected regular expressions for URL and email fields.

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11617 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-10-12 10:16:17 +00:00
Honza Král
83a3588ff7 [soc2009/model-validation] Fixed #11826 django.forms.fields.URLField rejects valid URLs with no abs_path component
Thanks wam

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11525 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-09-11 22:12:30 +00:00
Honza Král
9222091de8 [soc2009/model-validation] Merged to trunk at r11499
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-09-11 21:23:55 +00:00
Honza Král
78d75b86e3 [soc2009/model-validation] Merged to trunk at r11478
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-09-11 21:06:15 +00:00
Honza Král
f20e7fcdd2 [soc2009/model-validation] simple test for URLValidator, RegexValidator and BaseValidator
URL tests copied from tests/regressiontests/forms/fields.py

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-15 13:35:43 +00:00
Honza Král
7a6a71dd0c [soc2009/model-validation] tests for validate_comma_separated_integer_list
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-15 13:35:16 +00:00
Honza Král
15fb81c344 [soc2009/model-validation] test MinValueValidator, [Max|Min]LengthValidator
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-15 13:34:59 +00:00
Honza Král
9578491379 [soc2009/model-validation] validators refactoring
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-15 13:34:42 +00:00
Honza Král
05524abf1b [soc2009/model-validation] use validators in URLField model field
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11456 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-15 13:34:21 +00:00
Honza Král
5ebafe3fb9 [soc2009/model-validation] use RegexValidator in RegexField
declarative definition prepared for RegexValidator children

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-15 13:33:57 +00:00
Honza Král
84c9cf16d3 [soc2009/model-validation] validate url logic moved to validators
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-15 13:33:38 +00:00
Honza Král
69fef1daef [soc2009/model-validation] A few words on validation methods on models
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11439 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-12 20:11:30 +00:00
Honza Král
2799e92843 [soc2009/model-validation] Make sure that error messages with parameter get handled correctly
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-12 20:11:10 +00:00
Honza Král
106089c18e [soc2009/model-validation] Make sure custom messages work for models as well
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11437 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-12 20:10:54 +00:00
Honza Král
b28332cd46 [soc2009/model-validation] Added note on ComplexValidators and multi field validation
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-12 16:37:20 +00:00
Honza Král
244296ffbc [soc2009/model-validation] Slight tuning of the docs and working code
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-11 17:20:10 +00:00
Honza Král
8c98833283 [soc2009/model-validation] Update the validation docs to reflect new order of things
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-11 17:19:48 +00:00
Honza Král
45112c21a6 [soc2009/model-validation] Make empty containers recognized for what they are - empty
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-11 17:19:30 +00:00
Honza Král
6960b04915 [soc2009/model-validation] Updated the form validation docs to reflect new order of things.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-11 17:19:06 +00:00
Honza Král
b7e064207c [soc2009/model-validation] remove lazily translated strings for pickling of db fields
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-05 01:28:39 +00:00
Honza Král
a604fc39d0 [soc2009/model-validation] Added custom messages to models
No tests yet and it broke queryset pickling

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-05 01:28:21 +00:00
Honza Král
82c76b98cb [soc2009/model-validation] Split validation tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-05 01:27:56 +00:00
Honza Král
549b19af81 [soc2009/model-validation] Update model_forms test to actually test model form
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-05 01:27:37 +00:00