soc2009/model-validation

View source
soc2009/model-validation
Author Commit Message Labels Comments Date
4717 commits behind default.
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Minor edits to form validation docs.
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Fixed a discrepancy from a previous merge.
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merged from trunk up to [12093].
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Blocked up through [12070] from svnmerge.py.
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Initalized svnmerge.py tracking.
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Removed references in the docs to ComplexValidator. Refs [12498].
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Combined save_made_instance and save_instnace for simplicity.
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[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.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] removed directory accidentaly committed
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] avoid check for blank=True on User.password in UserCreationForm
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Typo. Thanks Alex Gaynor
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[socc2009/model-validation] Fixed imports on newly added localflavors
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merged to trunk at r12070
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Raise UnresolvableValidationError if an error occurs on excluded field
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Fixed a typo in the models/instances documentation.
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Renamed Model's clean method to full_validate to be more consistent with django.forms.
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Cleaned up some comments and whitespace.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] removed some unused tests
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added some comments to explain why I set DEBUG in tests
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Migrated CharField to use validators
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Removing some unused code
Default avatar jkoc...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Fixed some merge issues from [12014].
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Fixed #12078 ValidationError(s) from specific fields not rendered on admin add/change form.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merget to trunk at r12009
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Fixed #12132: unneccessary unique_check for primary key when not adding model
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merged to trunk at r11791
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merged to trunk at r11724
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merged to trunk at r11603
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Fixed #11826 django.forms.fields.URLField rejects valid URLs with no abs_path component
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merged to trunk at r11499
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merged to trunk at r11478
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] simple test for URLValidator, RegexValidator and BaseValidator
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] tests for validate_comma_separated_integer_list
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] test MinValueValidator, [Max|Min]LengthValidator
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] validators refactoring
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] use validators in URLField model field
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] use RegexValidator in RegexField
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] validate url logic moved to validators
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] A few words on validation methods on models
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Make sure that error messages with parameter get handled correctly
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Make sure custom messages work for models as well
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added note on ComplexValidators and multi field validation
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Slight tuning of the docs and working code
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Update the validation docs to reflect new order of things
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Make empty containers recognized for what they are - empty
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Updated the form validation docs to reflect new order of things.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] remove lazily translated strings for pickling of db fields
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added custom messages to models
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Split validation tests
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Update model_forms test to actually test model form
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merged to trunk at r11365
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Converted CommaSeparatedIntegerField to use validators
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added capacity for ComplexValidator handling to models
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Removed TODO - feeling more confident about the code
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-valitaion] minor correction in comments
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merget to trunk at r11229
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Fixed test for CharField validation
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added min and max length validator. CharField now validates it's value's length using a validator.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added tests for MaxValueValidator
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Minor simplification of validator tests
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] SlugField and IPAddressField now use validators.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Validation test refactoring
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Name tests migrated from doctests
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] use assertEqual(a, b) instead of assertEqual(True, a == b) in unit tests
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] no need to redefine default_error_messages that don'w differ from superclass.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Make validators work with error messages containing paramters.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Make sure that all validators in the same group (simple/complex) get run even if they all fail and we get all their messages.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] changed error_message creation to use __mro__ instead of recursive function.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] renamed fields_unit to just fields
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Removing the doctests replaced by fields_unit
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] module validators already imported, use it.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merged to trunk at r11155
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Minor test tweak
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] some test refactoring
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added error message checking
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Migrated FormField tests to unittests
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Merged to trunk at r11079
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] merged to trunk at r11032
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added validators to DbFields
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] have complex validators also use error_messages if applicable
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added code param to ValidationError and use it to override validator's messages
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Changed EmailField to use validators
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Do not run simple validators on empty values
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added a useless import to maintain ackwards compatibility
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added tests for ComplexValidators
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Corrected a typo in format string
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Moved execution of validators to separate method
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Introduced ComplexValidator and changed the validator handling logic.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Have model fields use EMPTY_VALUES from validators
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Merged to trunk at r10941
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-valition] Merged to trunk at r10914
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] added validate_email validator
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added code for calling validators on form fields
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] FileFields migrated
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] More fields migrated to split to_python/validate
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] rest of the form fields split
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Date based fields
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] DecimalField done
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] FloatField is IntegerField with a twist
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] IntegerField migrated to split to_python/validate
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Spit FormField.clean() to to_python() and validate()
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] added validators param to FormField
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added first validator with tests
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Tests now pass for validate_unique
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Make GetUniqueCheckTests proper testCase since it doesn't need DB
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] remove validate_unique from ModelForm
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Tests for Model._get_unique_checks
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] just enough code editted so that validation tests pass
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Moved validate_unique to Model
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added tests using model inheritance
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added simple tests for ForeignKey validation.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] moved validation tests to tests.py out of models.py
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added validation for ForeignKey
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Dont't validate already failed fields
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Corrected test for #10750
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Updated tests for auth.forms.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] UserCreationForm made easier
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added test for field.blank
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Split save_instance into make and save_made
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Save object before validating it's edit inlines when creating an object
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added clean() and validate() methods to Model.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Implemented some basic validation on model Fields including basic tests.
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Moved ValidationError to django.core.exceptions and removed ErrorList from within the Error
Default avatar Honz...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/model-validation] Added myself to AUTHORS
Default avatar ja...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Created "model-validation" branch for Honza Král's SoC project.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.