Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Oscar 1.1 and Django 1.8 #113

Merged
merged 10 commits into from
Nov 13, 2015
Merged

Support for Oscar 1.1 and Django 1.8 #113

merged 10 commits into from
Nov 13, 2015

Conversation

maiksprenger
Copy link
Member

Does what it says on the tin, and a bit of cleanup here and there.

With recent versions of Oscar, adding this app is required for the
sandbox to work. Without it, some of the Oscar templates choke.
When I tried the sandbox, the installed version wasn't compatible with
the installed version of Django. Bumping it fixes the problem.
I was slightly confused by how the sandbox works, so I added a comment
to make my life easier the second time I look at this.
I find them annoying and never needed them. If anybody objects, I'm
happy to enable more fine-grained control.
Our policy is to support the two latest versions of Django and Oscar.
This commit moves us towards that goal by enabling tests for them.

Some requirements needed bumping to get the tests to start.
get_shipping_methods was called with different parameters in different
parts of the code. This commit now changes things to call it with as
much information as is available at the time, hence always including the
request and the basket. It also uses named keyword arguments to make
backwards compatibility easier (as the method signature obviously
changed).

Closes #99.
As we stopped supporting Oscar < 1.0, we can remove a bit of code.
Freaky, I got Django complaining about South migration files being
present in django-extensions, and indeed 1.5.7 still ships with them
in the migrations folder (which should be called south_migrations since
the release of Django 1.7).
While I wonder why I haven't run into this issue before, I don't care
enough to find out and just disable it.
@maiksprenger maiksprenger changed the title WIP Feature/polish Support for Oscar 1.1 and Django 1.8 Nov 5, 2015
ShippingAddress fields don't allow setting None (null=False), so for
missing values we should set empty strings instead.

If my analysis is correct, this fixes #100. If it doesn't, it's still a
correct change.
maiksprenger added a commit that referenced this pull request Nov 13, 2015
Support for Oscar 1.1 and Django 1.8
@maiksprenger maiksprenger merged commit bccecae into master Nov 13, 2015
@maiksprenger maiksprenger deleted the feature/polish branch November 13, 2015 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant