mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-03-16 22:40:24 +00:00
19 lines
315 B
Python
19 lines
315 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
from dddp.api import API, Collection, Publication
|
|
from django_todos import models
|
|
|
|
|
|
class Task(Collection):
|
|
model = models.Task
|
|
|
|
|
|
class Tasks(Publication):
|
|
queries = [
|
|
models.Task.objects.all(),
|
|
]
|
|
|
|
API.register([
|
|
Task,
|
|
Tasks,
|
|
])
|