Commit a75ec47
Fix: Error when setting table name with inherit (#1196)
* fix(simple_histor.models): Custom history table name
Error was thrown when table_name is set with inherit=True in base model.
- add not inherited check
#1195
* fix(docs): Custom history table name
- authors and changes docs updated
* merge(master): Merged latest changes from master
* merge(master): Resolved conflicts
* merge(master): Resolved conflicts
* merge(master): Resolved conflicts
* merge(master): Resolved conflicts
* fix(simple_histor.models): Custom history table name
- unit test added
* Small improvement of the test for #1196
Now also compares the table name of the inherited (base) model, so that
it's easier to see that the history table name is not inherited.
* Added note on table_name inheritance to docs
---------
Co-authored-by: Anders <6058745+ddabble@users.noreply.github.com>1 parent f2e028c commit a75ec47
File tree
5 files changed
+25
-3
lines changed- docs
- simple_history
- tests
- tests
5 files changed
+25
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
387 | 390 | | |
388 | 391 | | |
389 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
673 | | - | |
| 673 | + | |
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
727 | 745 | | |
728 | 746 | | |
729 | 747 | | |
| |||
0 commit comments