Commit 5b3a798
api.db: fix
Database `update` method was breaking while creating a
`User` model with `is_superuser=1` field value.
Fix the method by separating `Node` specific logic from
other model updates based on below facts:
- `obj.update()` will trigger `BeanieBaseUser.update()` for `User`
model and not `DatabaseModel.update()`
- `User` model doesn't have `parent` field
Signed-off-by: Jeny Sadadia <[email protected]>Database.update method1 parent 93c1c75 commit 5b3a798
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| |||
0 commit comments