Ran
|
Jobs
4
|
Files
283
|
Run time
1min
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
[Backport] Allow unassigning categories from products This has been impossible so far. It is easily achieved by setting can_delete=True on the formset. I spent some time trying to get the nice solution working, which would be that assigning an empty category means deleting that ProductCategory instance. But I haven't found a good solution that avoids problems like in #1267. I have since come to the conclusion that enabling can_delete is the right thing to do. One can then explicitly hide the checkbox, but set the correct hidden field in Javascript on the client side if an empty value is assigned. The fields section has been moved from the factory declaration to the ProductForm Meta class to allow for easier customisation. Fixes #1289 (cherry picked from commit 3e4c2f73d)
10602 of 13960 relevant lines covered (75.95%)
3.04 hits per line
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 3046.1 (DJANGO_VERSION=1.5.5) | 283 |
75.9 |
Travis Job 3046.1 | |
2 | 3046.2 (DJANGO_VERSION=1.6.1) | 283 |
75.91 |
Travis Job 3046.2 | |
3 | 3046.3 (DJANGO_VERSION=1.5.5) | 283 |
75.9 |
Travis Job 3046.3 | |
4 | 3046.4 (DJANGO_VERSION=1.6.1) | 283 |
75.91 |
Travis Job 3046.4 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|