-
Hi,
Recently encountered an issue with newer versions of tortoise-orm with the following query:
```py
Account.filter(wallet=wallet).annotate(max_index=Max("account_index")).order_by('-account_i…
-
Hello! Huge shanks for the library!
I discovered that parameter exclude does't work, or i used it wrong.
Fields which i pass to this, does't exclude from result.
This is how i use it
`filtered_m…
-
**Describe the bug**
I 'm trying to execute sql like
```
SELECT
u.username
COUNT(*)
FROM table1 t
JOIN user u ON t.user_id = u.id
GROUP BY u.username;
```
so I have created orm i…
-
ipython中执行await Model.all()报错了:
```
Python 3.8.2 (default, Apr 2 2020, 07:37:04)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.13.0 -- An enhanced Interactive Python. Ty…
-
**Describe the bug**
Hi! `Model.bulk_create` excludes object ids from query that it produces. This leads the ids to an ascending order, even if otherwise specified.
**To Reproduce**
```python
#…
-
**Describe the bug**
URL encoded password in connection string not processed
**To Reproduce**
1. Initialize Tortoise with URL encoded `db_url` similar to this one:
`postgresql+pg8000://dbuser:…
-
`initializer` allows you to specify your modules (`List[str]`) but does not allow you to supply your app name; `app_label="models"` is passed to `getDBConfig(...)`.
This does not work if your model…
-
```
local_config = {
"connections": {
Database.translate_service_db.name: 'postgres://translate_service:'
'translate_service@0.0.0.0:54320/'…
-
**Describe the bug**
The following query produces an exception:
```py
await Account.filter(address=link).prefetch_related('user').first()
```
Account Model:
```py
class Account(Model):
…
-
Py3.6 suffers from a confused context, in part due to backported contextvars not keeping perfect track of state for asyncio event loop.
Either fix it
Or work-around the issue (e.g. disable pooling…
grigi updated
4 years ago