Skip to content

Commit

Permalink
✨️ Release 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jowilf committed Sep 9, 2022
1 parent 4de95e2 commit 9af251c
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 5 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Changelog

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.1.1] - 2022-09-09

---

### Added

- Add `ColorField` by @jowilf in https://github.com/jowilf/starlette-admin/pull/7
- AsyncEngine support for SQLAlchemy by @jowilf in https://github.com/jowilf/starlette-admin/pull/8


**Full Changelog**: https://github.com/jowilf/starlette-admin/compare/0.1.0...0.1.1
15 changes: 15 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Changelog

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.1.1] - 2022-09-09

---

### Added

- Add `ColorField` in [#7](https://github.com/jowilf/starlette-admin/pull/7)
- AsyncEngine support for SQLAlchemy in [#8](https://github.com/jowilf/starlette-admin/pull/8)
4 changes: 2 additions & 2 deletions docs/tutorial/configurations/modelview.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ The pagination options in the list page can be configured. The available options
The template files are built using Jinja2 and can be completely overridden in the configurations. The pages available are:

* `list_template`: List view template. Default is `list.html`.
* `detail_template`: Details view template. Default is `details.html`.
* `create_template`: Edit view template. Default is `edit.html`.
* `detail_template`: Details view template. Default is `detail.html`.
* `create_template`: Edit view template. Default is `create.html`.
* `edit_template`: Edit view template. Default is `edit.html`.

!!! Example
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ nav:
- Views: 'api/views.md'
- BaseAdmin: 'api/base-admin.md'
- AuthProvider: 'api/auth-provider.md'
- Changelog: 'changelog.md'


extra:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "starlette-admin"
version = "0.1.0"
version = "0.1.1"
description = "Simple and extensible admin interface framework for Starlette/FastApi"
authors = ["Jocelin Hounon <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion starlette_admin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.1.0"
__version__ = "0.1.1"

from starlette_admin.base import BaseAdmin
from starlette_admin.fields import *
Expand Down
3 changes: 2 additions & 1 deletion starlette_admin/contrib/sqla/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
RelationField,
StringField,
TextAreaField,
URLField,
URLField, ColorField,
)
from starlette_admin.contrib.sqla._types import SESSION_TYPE
from starlette_admin.contrib.sqla.exceptions import InvalidModelError
Expand Down Expand Up @@ -312,6 +312,7 @@ def build_full_text_search_query(
EmailField,
URLField,
PhoneField,
ColorField
]:
query["or"].append({field.name: {"contains": term}})
return build_query(query, model)
Expand Down

0 comments on commit 9af251c

Please sign in to comment.