Merge branch 'release/0.9.1'

This commit is contained in:
Tyson Clugg 2015-06-16 17:53:52 +10:00
commit 12a34f0903
5 changed files with 12 additions and 2 deletions

View file

@ -1,6 +1,11 @@
Change Log
==========
0.9.1
-----
* Added support for django.contrib.postres.fields.ArrayField
serialization.
0.9.0
-----
* Added Django 1.8 compatibility. The current implementation has a

View file

@ -57,6 +57,8 @@ If you'd like support for the Meteor Accounts package (ie: login/logout
with django.contrib.auth) consult the section on authentication below
and use the following line instead:
.. code:: python
# settings.py
...
INSTALLED_APPS = list(INSTALLED_APPS) + ['dddp', 'dddp.accounts']

View file

@ -10,6 +10,7 @@ import traceback
import dbarray
from django.conf import settings
from django.contrib.auth import get_user_model
import django.contrib.postgres.fields
from django.db import connection, connections
from django.db.models import aggregates, Q
try:
@ -390,6 +391,8 @@ class Collection(APIMixin):
fields[field.column] = get_meteor_id(
rel.to, fields.pop(field.name),
)
elif isinstance(field, django.contrib.postgres.fields.ArrayField):
fields[field.name] = field.to_python(fields.pop(field.name))
for field in meta.local_many_to_many:
fields['%s_ids' % field.name] = get_meteor_ids(
field.rel.to, fields.pop(field.name),

View file

@ -46,4 +46,4 @@ class MeteorView(View):
except KeyError:
print(path)
return HttpResponse(self.app.html)
#raise Http404
# raise Http404

View file

@ -5,7 +5,7 @@ from setuptools import setup, find_packages
setup(
name='django-ddp',
version='0.9.0',
version='0.9.1',
description=__doc__,
long_description=open('README.rst').read(),
author='Tyson Clugg',