Skip to content

Commit

Permalink
Updated package name.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Mar 20, 2021
1 parent 6fec61c commit 9c9bae9
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tag = True
search = version="{current_version}"
replace = version="{new_version}"

[bumpversion:file:dynamic_validator/__init__.py]
[bumpversion:file:extra_validator/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"

Expand Down
6 changes: 3 additions & 3 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[run]
source = dynamic_validator
source = extra_validator
omit =
.tox
demo/apps.py
django_extra_field_validation/wsgi.py
setup.py
manage.py
dynamic_validator/apps.py
dynamic_validator/tests.py
extra_validator/apps.py
extra_validator/tests.py
branch = True

[report]
Expand Down
6 changes: 3 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# added by check_manifest.py
prune test*.py
prune dynamic_validator/tests.py
recursive-include dynamic_validator *.py
prune extra_validator/tests.py
recursive-include extra_validator *.py
include *.py
exclude *.toml
include *.txt
Expand All @@ -13,7 +13,7 @@ exclude pytest.ini
exclude tox.ini
prune demo
exclude manage.py
exclude dynamic_validator/tests.py
exclude extra_validator/tests.py
recursive-exclude django_extra_field_validation *.py
include LICENSE-APACHE
include LICENSE-MIT
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ This provides model level validation which includes:
```py

from django.db import models
from dynamic_validator import FieldValidationMixin
from extra_validator import FieldValidationMixin


class TestModel(FieldValidationMixin, models.Model):
Expand Down Expand Up @@ -76,7 +76,7 @@ ValueError: {'fixed_price': ValidationError([u'Please provide only one of: Amoun
```py

from django.db import models
from dynamic_validator import FieldValidationMixin
from extra_validator import FieldValidationMixin


class TestModel(FieldValidationMixin, models.Model):
Expand Down Expand Up @@ -108,7 +108,7 @@ ValueError: {'amount': ValidationError([u'Please provide a value for: "amount".'
```py

from django.db import models
from dynamic_validator import FieldValidationMixin
from extra_validator import FieldValidationMixin


class TestModel(FieldValidationMixin, models.Model):
Expand Down Expand Up @@ -148,7 +148,7 @@ ValueError: {'percentage': ValidationError([u'Please provide only one of: Fixed

from django.db import models
from django.conf import settings
from dynamic_validator import FieldValidationMixin
from extra_validator import FieldValidationMixin


class TestModel(FieldValidationMixin, models.Model):
Expand Down Expand Up @@ -193,7 +193,7 @@ ValueError: {u'percentage': ValidationError([u'Please provide a value for: "perc

from django.db import models
from django.conf import settings
from dynamic_validator import FieldValidationMixin
from extra_validator import FieldValidationMixin


class TestModel(FieldValidationMixin, models.Model):
Expand Down
4 changes: 2 additions & 2 deletions demo/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import dynamic_validator.field_validation.validator
import extra_validator.field_validation.validator


class Migration(migrations.Migration):
Expand Down Expand Up @@ -56,7 +56,7 @@ class Migration(migrations.Migration):
),
],
bases=(
dynamic_validator.field_validation.validator.FieldValidationMixin,
extra_validator.field_validation.validator.FieldValidationMixin,
models.Model,
),
),
Expand Down
2 changes: 1 addition & 1 deletion demo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from django.contrib.auth import get_user_model
from django.db import models

from dynamic_validator import FieldValidationMixin
from extra_validator import FieldValidationMixin

if django.VERSION <= (3, 0):
from django.utils.translation import ugettext_noop as _
Expand Down
2 changes: 1 addition & 1 deletion django_extra_field_validation/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"dynamic_validator",
"extra_validator",
"demo",
]

Expand Down
10 changes: 5 additions & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ This provides model level validation which includes:
```py

from django.db import models
from dynamic_validator import FieldValidationMixin
from extra_validator import FieldValidationMixin


class TestModel(FieldValidationMixin, models.Model):
Expand Down Expand Up @@ -76,7 +76,7 @@ ValueError: {'fixed_price': ValidationError([u'Please provide only one of: Amoun
```py

from django.db import models
from dynamic_validator import FieldValidationMixin
from extra_validator import FieldValidationMixin


class TestModel(FieldValidationMixin, models.Model):
Expand Down Expand Up @@ -108,7 +108,7 @@ ValueError: {'amount': ValidationError([u'Please provide a value for: "amount".'
```py

from django.db import models
from dynamic_validator import FieldValidationMixin
from extra_validator import FieldValidationMixin


class TestModel(FieldValidationMixin, models.Model):
Expand Down Expand Up @@ -148,7 +148,7 @@ ValueError: {'percentage': ValidationError([u'Please provide only one of: Fixed

from django.db import models
from django.conf import settings
from dynamic_validator import FieldValidationMixin
from extra_validator import FieldValidationMixin


class TestModel(FieldValidationMixin, models.Model):
Expand Down Expand Up @@ -193,7 +193,7 @@ ValueError: {u'percentage': ValidationError([u'Please provide a value for: "perc

from django.db import models
from django.conf import settings
from dynamic_validator import FieldValidationMixin
from extra_validator import FieldValidationMixin


class TestModel(FieldValidationMixin, models.Model):
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion dynamic_validator/apps.py → extra_validator/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


class DynamicValidatorConfig(AppConfig):
name = "dynamic_validator"
name = "extra_validator"
File renamed without changes.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[pytest]
DJANGO_SETTINGS_MODULE = django_extra_field_validation.settings
python_files = tests.py test_*.py *_tests.py
testpaths = dynamic_validator demo
testpaths = extra_validator demo

0 comments on commit 9c9bae9

Please sign in to comment.