Commit 8652b27
committed
Fix Table user kwarg crash and single-source version
- Remove user=request.user from typed tab table instantiation;
django_tables2.Table does not accept this kwarg and NetBox 4.5.4
passes it through, causing TypeError. Per-user preferences are
already applied by table.configure(request) called immediately after.
- Read plugin version from package metadata (importlib.metadata) so
it is defined only in pyproject.toml, not duplicated in __init__.py.1 parent fd7835e commit 8652b27
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
0 commit comments