* Compatibility with Wagtail 2 and Django 2
* Fixes#154
Wagtail 2 compatibility:
* Fixes references to Wagtail packages which use the `wagtail.wagtail*` naming scheme. Wagtail 2 removes the redundancy.
* Wraps imports in `try`/`except` blocks to maintain compatibility with Wagtail 1.
Django 2 comaptibility:
Included because Wagtail 2 adds support for Django 2.
* Adds `on_delete` to all `ForeignKey` model fields, which is now required by Django 2.
* Updates for wagtail 2
* rename modules
* Longclaw v2: Rename and new migrations
* Longclaw 2: Reduce fails to 2 errors
* Longclaw v2: All tests passing
* Update travisconf
* Travis: Enable py37
* Update project template for v2
* longclawv2: update project template
* Fix migrations for longclaw 2
* Corrections in project template for longclaw1.0
* Correct location of templates and update docs
* Automatically load shipping countries
* Add loadcountries command
* Add info on loading country data
* [FIX] quantity in api.BasketViewSet.destroy gets unicode instead of int
* from rest_framework.decorators import detail_route, list_route
from rest_framework import permissions, status, viewsets
from rest_framework.response import Response
from longclaw.longclawbasket.models import BasketItem
from longclaw.longclawbasket.serializers import BasketItemSerializer
from longclaw.longclawbasket import utils
from longclaw.utils import ProductVariant
class BasketViewSet(viewsets.ModelViewSet):
* [FIX] RE: quantity in api.BasketViewSet.destroy gets unicode instead of int
This change anchors the longclaworders API URLs with a '^' to ensure they can't
confusingly match 'ANYTHING/api/order/...'. Also forces the order loading
JavaScript to use an absolute URL.
I'm not sure that this is the best architectural solution, but it resolves the
issues I'm having at least.
Fixes#131.