Skip to content

Commit

Permalink
Update README, CHANGELOG and version.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Sep 23, 2022
1 parent 85c918c commit 17651cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.0](https://github.com/fabiocaccamo/django-extra-settings/releases/tag/0.5.1) - 2022-07-05
- Add custom validator support to settings. Fix #33 by [@domeniconappo](https://github.com/domeniconappo) in #34.

## [0.5.1](https://github.com/fabiocaccamo/django-extra-settings/releases/tag/0.5.1) - 2022-07-05
- Fixed admin static css media bug.

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ setting_obj.value = False
setting_obj.save()
```

#### Validators
Each setting can have its own validator, defined using its full python path, eg. `myapp.mymodule.my_validator`.
Validators receive a single argument, the value of the setting, and they should return `True` only if the value is valid, otherwise a `ValidationError` is raised.

#### Delete
```python
from extra_settings.models import Setting
Expand Down
2 changes: 1 addition & 1 deletion extra_settings/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

__version__ = "0.5.1"
__version__ = "0.6.0"

0 comments on commit 17651cb

Please sign in to comment.