Skip to content

Commit

Permalink
Merge pull request #119 from ambitioninc/develop
Browse files Browse the repository at this point in the history
3.1.0
  • Loading branch information
somewes committed Apr 2, 2018
2 parents 0c609dc + a1b0b3c commit ff523d8
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ python:

env:
matrix:
- DJANGO=1.10
- DJANGO=1.11
- DJANGO=2.0
- DJANGO=master
Expand All @@ -26,7 +25,6 @@ matrix:
- { python: "2.7", env: DJANGO=master }
- { python: "2.7", env: DJANGO=2.0 }
- { python: "3.4", env: DJANGO=master }
- { python: "3.6", env: DJANGO=1.10 }

allow_failures:
- env: DJANGO=master
Expand Down
22 changes: 22 additions & 0 deletions entity/migrations/0009_auto_20180402_2145.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-02 21:45
from __future__ import unicode_literals

import django.contrib.postgres.fields.jsonb
import django.core.serializers.json
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('entity', '0008_auto_20180329_1934'),
]

operations = [
migrations.AlterField(
model_name='entity',
name='entity_meta',
field=django.contrib.postgres.fields.jsonb.JSONField(encoder=django.core.serializers.json.DjangoJSONEncoder, null=True),
),
]
3 changes: 2 additions & 1 deletion entity/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.contrib.postgres.fields import JSONField
from django.core.serializers.json import DjangoJSONEncoder
from django.db import models
from django.db.models import Count, Q
from django.utils.encoding import python_2_unicode_compatible
Expand Down Expand Up @@ -259,7 +260,7 @@ class Entity(BaseActivatableModel):
entity_kind = models.ForeignKey(EntityKind, on_delete=models.PROTECT)

# Metadata about the entity, stored as JSON
entity_meta = JSONField(null=True)
entity_meta = JSONField(null=True, encoder=DjangoJSONEncoder)

# True if this entity is active
is_active = models.BooleanField(default=True, db_index=True)
Expand Down
2 changes: 1 addition & 1 deletion entity/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.0.0'
__version__ = '3.1.0'
2 changes: 2 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Release Notes

- 3.1.0:
- Add jsonfield encoder (drop support for 1.10)
- 3.0.0:
- Add tox to support more versions
- Switch to django's JSONField
Expand Down
3 changes: 0 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[tox]
envlist =
flake8
py{27,34,35}-django110
py{27,34,35,36}-django111
py{34,35,36}-django20
py{35,36}-djangomaster
Expand All @@ -10,7 +9,6 @@ envlist =
setenv =
DB = postgres
deps =
django110: Django>=1.10,<1.11
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
djangomaster: https://github.com/django/django/archive/master.tar.gz
Expand All @@ -25,7 +23,6 @@ commands = flake8 entity

[travis:env]
DJANGO =
1.10: django110
1.11: django111
2.0: django20
master: djangomaster

0 comments on commit ff523d8

Please sign in to comment.