Changelog
7.0.2 (2023-05-04)
Added Django system check to warn about deprecation
7.0.1 (2023-05-04)
This package was superseded by ambient-toolbox. Please install the successor package.
7.0.0 (2023-03-28)
Breaking change: Dropped Python 3.7 support due to end of lifetime
Added
ALWAYS_UPDATE_FIELDSflag toCommonInfomodelAdded
rufflinter and replacedflake8andisortwith itExcluded not officially supported Python versions for certain Django releases for test matrix
6.12.0 (2023-03-16)
Added
validate_test_structuremanagement command for validating project test structureFixed syntax error in docs
Fixed typo in docstring of
concatmethodImproved code in test app
6.11.0 (2023-02-19)
Added
HtmxResponseMixinfor Django viewsAdded missing
objectclass attribute toToggleViewUpdated local lint, build and test suite to Python 3.11
Updated readme file for contribution
6.10.1 (2023-02-13)
Updated bug in documentation
6.10.0 (2023-02-13)
Added test mixin
DjangoMessagingFrameworkTestMixinAdded python 3.11 to test matrix and supported versions
6.9.2 (2023-02-06)
Updated
pre-commitpackages
6.9.1 (2023-01-25)
Set version border for dependency “bleach” because of breaking changes
6.9.0 (2023-01-18)
Added “GITLAB_CI_DISABLE_COVERAGE” flag to coverage script for Gitlab pipeline
Fixed typo in the docs
6.8.4 (2023-01-11)
Moved changelog to “CHANGES.md” to make Dependabot understand/find it
6.8.3 (2023-01-11)
Fixed bug with filtering in EmailTestService for subject passing a gettext_lazy object (second occurrence)
6.8.2 (2023-01-11)
Fixed bug with filtering in EmailTestService for subject passing a gettext_lazy object
6.8.1 (2022-12-20)
Fixed broken init file
6.8.0 (2022-12-19)
Added
SaveWithoutSignalsMixinmodel mixin
6.7.0 (2022-11-25)
Added
Selectorbase classAdded
AbstractUserSpecificSelectorMixinandGloballyVisibleSelectorhelpers for selector patternAdded documentation for new selector pattern
Added
django-upgradeto lintingAdded date helper
get_first_and_last_of_monthUpdated linting tools
black&pyupgradeAdded
pyupgradeanddjango-upgradeto pipeline
6.6.3 (2022-11-18)
Fixed
BaseViewPermissionTestMixinto work with custom user models
6.6.2 (2022-10-12)
Updated documentation of mixin
PermissionModelMixinin regard to a caveat with default permissions
6.6.1 (2022-10-12)
Bugfix in documentation of mixin
PermissionModelMixin
6.6.0 (2022-10-12)
Added model mixin
PermissionModelMixinto provide a neat way of handling non-(database)-model-related permissionsImproved mixin documentation
Updated GitHub Actions
6.5.0 (2022-09-29)
Added view mixin
UserInFormKwargsMixinto pass the user to a form in aFormView,CreateVieworUpdateView
6.4.0 (2022-09-29)
Models inheriting from
CommonInfowill automatically save the four CommonInfo fields in addition to the fields selected when usingupdate_fieldsin the models save method.
6.3.2 (2022-09-29)
Updated gitlab-ci for showing tests in MR
6.3.1 (2022-09-19)
Updated GitHub test matrix OS
6.3.0 (2022-09-19)
Integrated
flake8-bugbearandpyupgradeincluding required code adjustmentsImproved security vulnerability scanning
Updated local build and test suite to Python 3.10
Added
flake8-bugbearto Quality Assurance measuresAdded
pyupgradeto Quality Assurance measures
6.2.3 (2022-08-15)
Fixed some translations
6.2.2 (2022-08-12)
Added Django 4.1 to test matrix and compatible versions
6.2.1 (2022-08-12)
Improved detecting of permission mismatches in view test mixin
BaseViewPermissionTestMixin
6.2.0 (2022-07-13)
Added test case for
BaseViewPermissionTestMixinto ensure that defined permissions exist in the database
6.1.3 (2022-06-30)
Clarified docs for
GloballyVisibleQuerySet
6.1.2 (2022-06-30)
Extended docs for
BaseViewPermissionTestMixinwith limitation when using a caching wrapper
6.1.1 (2022-06-29)
Fixed unittest for django<3.2
6.1.0 (2022-06-29)
Added
DjangoPermissionRequiredMixinfor Django views and supporting test mixinBaseViewPermissionTestMixinIncreased minimal required bugfix version for Django 2.2
Updated Readme file
6.0.0 (2022-05-19)
Breaking change: Removed
ffmpeghelper methodsgenerate_video_thumbnail()andget_video_length()Added
CleanOnSaveMixinblack and isort linting integrated
Added pre-commit hooks for linting
5.14.1 (2022-04-06)
Dropped support for deprecated Python 3.6
5.14.0 (2022-04-06)
EmailTestServicecan now filter for subjects using regular expressions
5.13.7 (2022-03-14)
Fixed typo in coverage validator
5.13.6 (2022-03-11)
Improved console logging for coverage validator
5.13.5 (2022-02-28)
Improved motivation in class-based email docs
5.13.4 (2022-02-28)
Added Script for updating mirror
Fixed typo in documentation
5.13.3 (2022-02-23)
Added GitHub action matrix for running tests on django/python combinations
Updated Ambient email addresses to new domain
Removed django <4.0 restriction
Fixed tests for django 4.0
5.13.2 (2022-02-21)
CurrentUserMiddlewarebugfix, cleaning up user variable for single-threaded tests after request processingFixed version typo in changelog
5.13.1 (2022-02-04)
GraphQL docs bugfix
5.13.0 (2022-02-03)
Added a view which allows logging errors to Sentry normally while using Graphene.
5.12.1 (2022-01-31)
Fixed bug in Gitlab code coverage compare service documentation
5.12.0 (2022-01-28)
Added Gitlab code coverage compare service
CoverageServicewith documentation
5.11.1 (2022-01-24)
Added docs for
ToggleViewFixed some typos in
Readme.mdandchangelog.md
5.11.0 (2022-01-24)
Added generic
ToggleViewUpdated some docstrings in
formset_view_mixin
5.10.1 (2021-12-10)
Added docs about GDPR-compliant use of sentry with user data
Fixed some versions to make Sphinx build work again
5.10.0 (2021-12-10)
Added helper method for sentry to GDPR-compliant remove sensitive user data from event
Updated type hints in
BaseEmailServiceFactoryinit methodImproved docs for method
get_start_and_end_date_from_calendar_week
5.9.1 (2021-11-25)
Fixed typo in custom scrubber class logging
Rewrote permission manager docs and added better best practice
Update in email testing docs
5.9.0 (2021-11-18)
Added default truncate of django session table to
AbstractScrubbingService
5.8.0 (2021-11-11)
Added
urlparameter toRequestProviderMixin
5.7.4 (2021-11-08)
Added missing documentation about semantic database anonymisation
Added missing documentation about string utils
Added missing documentation about
get_namedtuple_choices()helperAdded missing documentation about
CrispyLayoutFormMixinAdded missing documentation about
ClassBasedViewTestMixin
5.7.3 (2021-10-22)
Added missing documentation about email testing
Updated Readme file
5.7.2 (2021-10-21)
Fixed
flitconfiguration
5.7.1 (2021-10-21)
Setup
flitfor release management
5.7.0 (2021-10-15)
Added admin mixin
DeactivatableChangeViewAdminMixinAdded
responseparameter to testing middlewares
5.6.0 (2021-09-01)
Extracted embedded form valid logic to separate method with super call in
_FormsetMixinAdded documentation about
FormsetCreateViewMixinandFormsetUpdateViewMixin
5.5.2 (2021-08-24)
Added documentation about
BleacherMixin
5.5.1 (2021-08-24)
Added explicit declaration of bleacher field list attribute
BLEACH_FIELD_LISTinBleacherMixin
5.5.0 (2021-08-02)
Added validation for user object in
RequestProviderMixinAdded link to changelog in setup.py
Moved minimum django version to 2.2
5.4.0 (2021-06-28)
Added
__len__and__iter__to EmailTestServiceEmailTestService uses EmailTestServiceMail instances, which wrap the underlying Django mail objects, and provide additional assertion functions
5.3.0 (2021-06-16)
Added
methodkwarg toRequestProviderMixin.get_request()
5.2.2 (2021-05-27)
Fixed a bug in
BaseEmailServicewhere txt part was rendered sometimes with weird line breaksAdded Bugtracker link to
setup.py
5.2.1 (2021-05-12)
Translation files were missing in wheel
Bugfix in docs
5.2.0 (2021-05-11)
Changed all translatable texts to English base version
Added German translation file for current translatable
Updated RequestProviderMixin.get_request() type hinting
Added documentation for database anonymisation / django-scrubber wrapper
5.1.1 (2021-04-21)
Extended email attachment functionality to be able to define filename and mimetype
5.1.0 (2021-04-20)
Breaking change: Fixed typo in
WhitelistEmailBackend.whitify_mail_adressesmethod name. Method is now calledwhitify_mail_addressesMoved assignment of
WhitelistEmailBackendsettings var to static methods to be able to overwrite them if neededAdded documentation about
WhitelistEmailBackendAdded some type hinting to
WhitelistEmailBackendAdded formset mixin
CountChildrenFormsetMixinAdded djangorestframework field
RecursiveFieldAdded
get_attachments()method toBaseEmailServiceand extended constructor to accept a variableattachment_list
5.0.0 (2021-03-26)
Breaking change: Moved
ReadOnlyAdminandEditableOnlyAdminto packagemodel_admins.classesandReadOnlyTabularInlineto packagemodel_admins.inlinesto enable better structuring of new admin componentsFixed some inconsistencies within
ReadOnlyAdmin,EditableOnlyAdminandReadOnlyTabularInlineclassesAdded
admin.viewspackage containing a base crispy form, and a mixin to turn any regular django view into a nice and cozy django admin viewAdded an abundance of
model_admins.mixins:AdminCreateFormMixin,AdminNoInlinesForCreateMixin,AdminRequestInFormMixin,FetchParentObjectInlineMixin,FetchObjectMixin,CommonInfoAdminMixinAdded
RequestProviderMixinto easily create a dummy request in unittestsAdded support for django 3.2 and dropped support for 2.0, 2.1 and 3.0
Added support for Python 3.9 and dropped support for 3.5
Updated test python version to 3.9
4.2.1 (2021-03-17)
Added some links to setup.py for pypi
Added some documentation for setting up the toolbox
4.2.0 (2021-03-12)
Added
GloballyVisibleQuerySetincluding tests and documentationAdded
BaseViewSetTestMixinfor the djangorestframework pluginFixed some typos in the documentation
4.1.2 (2021-03-05)
Added kwargs parameter to init-method of
BaseEmailServiceFactory
4.1.1 (2021-03-04)
Fixed a bug in the documentation
4.1.0 (2021-02-25)
Added class
BaseEmailServicefor easier email creation and factoryBaseEmailServiceFactoryfor multiple (mostly personalised) emailsAdded
html2textas a dependency to be able to automatically process the text part of an email from the html template
4.0.2 (2021-02-24)
Fixed a bug in
EmailTestService.assert_body_contains()method to make it work for emails NOT having an HTML part
4.0.1 (2021-01-29)
Optimised code of function
test_get_value_from_tuple_by_key_found()Added unittests for named tuple functions
4.0.0 (2020-11-10)
Breaking change: Moved view mixin
RequestInFormKwargsMixinfrommixin.formsto proper placemixin.viewsBreaking change: Removed string helper function
restore_windows1252controls(),number_to_text()andreplace_link_pattern()Breaking change: Removed choice converter function
get_name_by_value()in favour ofget_value_from_tuple_by_key()Breaking change: Removed date converter function
get_seconds()because Python 3.6 already provides atotal_seconds()methodBreaking change: Removed date converter function
get_current_datetime()because django already provides thetimezone.now()methodBreaking change: Removed date converter function
diff_month()in favour ofdate_month_delta()Breaking change: Merged
converterpackage inutilspackageBreaking change: Moved view-layer-based helpers to extra requirement
view-layer:_FormsetMixin,FormsetUpdateViewMixin,FormsetCreateViewMixin,CrispyLayoutFormMixin,CustomPermissionMixin,RequestInFormKwargsMixinSimplified code of function
float_to_string()Added type hinting to lots of helper functions
Updated and restructured documentation
Added security check for dependencies in local pipeline
Removed some old python 2.7 syntax
3.5.2 (2021-01-07)
Bugfix with args and kwargs in
ReadOnlyTabularInline
3.5.1 (2020-11-19)
Bugfix with args and kwargs in
ClassBasedViewTestMixin
3.5.0 (2020-11-10)
Merged package
graphene-django-aiinto this package and enabled graphql-specific installation withpip install ai_django_core[graphql]Added some files for readthedocs.io and updated Readme
3.4.0 (2020-10-30)
Moved tests out of package scope
Updated test python version to 3.8
Added tests for context manager
TempDisconnectSignalwith test setup
3.3.0 (2020-10-30)
Merged package
ai-drf-coreinto this package and enabled djangorestframework-specific installation withpip install ai_django_core[drf]Added
BaseModelSerializerandCommonInfoSerializerIncremented dependencies django and bleach to previous versions latest bugfix release
3.2.0 (2020-10-16)
Added
AbstractPermissionMixin,AbstractUserSpecificQuerySetandAbstractUserSpecificManagerabstract managersRemoved deprecated
antivirpackageAdded Sphinx documentation setup to package
3.1.0 (2020-10-14)
Added context manager
TempDisconnectSignalto nicely disable model signals temporarilyMoved dev dependencies to
extras_requirein the setup file
3.0.2 (2020-10-15)
Imports all utils into the modules scope
Re-translated some docstrings into English
Added tests for the
log_whodidutil function
3.0.1 (2020-10-12)
Added missing
__init__.pyfile to package mail.services
3.0.0 (2020-09-09)
Breaking change: Renamed package from
aitoai_django_coreto clarify dependencies for usagesFinished code linting
Removed unused imports in antivirus util package
2.3.0 (2020-08-07)
Changed
ugettext_lazytogettext_lazyto tackle django 4.0 deprecation warnings
2.2.1 (2020-07-01)
Removed misleading inheritance of mixin
ClassBasedViewTestMixinfromTestCase
2.2.0 (2020-07-01)
Added response class
CustomPermissionMixin
2.1.2 (2020-04-30)
Extended pypi documentation with classifiers
2.1.1 (2020-04-24)
Refactors open calls to use context managers
Refactors the test setup
Configures coverage
Adds a coverage report to the CI
2.1.0 (2020-04-20)
Removed password generator method
generate_passwordRenamed math method
round_up_to_decimaltoround_up_decimalAdded math method
round_to_decimalUpdated metadata in setup.cfg
2.0.0 (2020-04-09)
Dropped Python 2.x support
Removed explicit dependency to package
mockand using implicit one via unittestImproved linting
1.2.14 (2020-04-06)
Fixed a bug with session setup in
ClassBasedViewTestMixin
1.2.13 (2020-04-02)
Added
DELETEmethod for testing mixingClassBasedViewTestMixin
1.2.12 (2020-02-14)
Added CBV testing mixing
ClassBasedViewTestMixin
1.2.11 (2020-01-28)
Bugfix in documentation
1.2.10 (2020-01-28)
Improved documentation
1.2.9 (2020-01-02)
Extended and improved class
AbstractScrubbingService
1.2.8 (2019-12-13)
Added custom scrubber class
AbstractScrubbingServiceto provide a helper for adding custom scrubbing logic for data anonymisation
1.2.7 (2019-07-11)
Added email testing class
EmailTestServiceto provide a wrapper for better email unittests
1.2.6 (2019-07-02)
Added helper class
tz_today()to provide an easy getter for a timezone-aware today
1.2.5 (2019-06-25)
Added helper class
DateHelperto provide constants to use in django’s ORM lookup__week_day
1.2.4 (2019-05-20)
More refactoring on
CurrentUserMiddlewareto make it easier to override internal functions
1.2.3 (2019-05-20)
Moved
get_current_userfunction insideCurrentUserMiddlewareas a static method to enable devs to override it
1.2.2 (2019-04-05)
Updated deployment documentation
Added markdown support to Readme file
1.2.1 (2019-03-25)
Fixed bug causing
CommonInfomiddleware to not setlastmodified_byon object creation
1.2.0 (2019-03-19)
Added
CommonInfomiddleware
1.1.8
Readonly admin classes
Date util functions
Clear cache helper
1.1.7
Settings for whitelist email services added
Formset mixins added
1.1.6
Modifications to antivirus field
1.1.5
Updated setup.py with newer information
1.1.4
Bleacher mixin bugfix
1.1.3
Bleacher mixin added
< 1.1.3
Ancient history :)