From 9a29778403f1cbeb3239e4e9b98bdfdfca97b129 Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Mon, 1 Aug 2022 18:37:12 +0200 Subject: [PATCH] Version 0.2.0 (#254) --- CHANGELOG.md | 11 +++++++++++ docs/changelog.md | 9 +++++++++ setup.cfg | 2 +- sqladmin/__init__.py | 2 +- sqladmin/application.py | 2 +- 5 files changed, 23 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9d28937..4909607c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,17 @@ 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). +## Version 0.2.0 - 2022-08-01 + +### Added + +* Add `list_query`, `count_query` and `search_query` options in https://github.com/aminalaee/sqladmin/pull/243 +* Add `BaseView` for custom pages in https://github.com/aminalaee/sqladmin/pull/244 +* Add `expose` for BaseView in https://github.com/aminalaee/sqladmin/pull/251 +* Rename `ModelAdmin` to `ModelView` in https://github.com/aminalaee/sqladmin/pull/249 + +**Full Changelog**: https://github.com/aminalaee/sqladmin/compare/0.1.12...0.2.0 + ## Version 0.1.12 - 2022-07-13 ### Added diff --git a/docs/changelog.md b/docs/changelog.md index 88192b95..16d78754 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,6 +4,15 @@ 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). +## Version 0.2.0 - 2022-08-01 + +### Added + +* Add `list_query`, `count_query` and `search_query` options in [#243](https://github.com/aminalaee/sqladmin/pull/243) +* Add `BaseView` for custom pages in [#244](https://github.com/aminalaee/sqladmin/pull/244) +* Add `expose` for BaseView in [#251](https://github.com/aminalaee/sqladmin/pull/251) +* Rename `ModelAdmin` to `ModelView` in [#249](https://github.com/aminalaee/sqladmin/pull/249) + ## Version 0.1.12 - 2022-07-13 ### Added diff --git a/setup.cfg b/setup.cfg index 036965ec..d5a9757f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = sqladmin -version = 0.1.12 +version = 0.2.0 author = Amin Alaee author_email = mohammadamin.alaee@gmail.com description = Admin interface for SQLAlchemy. diff --git a/sqladmin/__init__.py b/sqladmin/__init__.py index b4ed1734..bbd21afc 100644 --- a/sqladmin/__init__.py +++ b/sqladmin/__init__.py @@ -1,7 +1,7 @@ from sqladmin.application import Admin, expose from sqladmin.models import BaseView, ModelAdmin, ModelView -__version__ = "0.1.12" +__version__ = "0.2.0" __all__ = [ "Admin", diff --git a/sqladmin/application.py b/sqladmin/application.py index d755185e..2bd59ef8 100644 --- a/sqladmin/application.py +++ b/sqladmin/application.py @@ -179,7 +179,7 @@ def register_model(self, model: Type[ModelView]) -> None: # pragma: no cover "Method `register_model` is deprecated please use `add_view` instead.", DeprecationWarning, ) - self.add_model_view(model) + self.add_view(model) class BaseAdminView(BaseAdmin):