Skip to content

Commit

Permalink
Version 0.2.0 (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee authored Aug 1, 2022
1 parent 9f70b8a commit 9a29778
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion sqladmin/__init__.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion sqladmin/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9a29778

Please sign in to comment.