urls.py 345 Bytes
Newer Older
Claire Zuliani's avatar
Claire Zuliani committed
1 2 3
from django.conf.urls import url, include
from django.conf import settings
from djangoldp.views import LDPViewSet
4
from .models import ClientInvoice
5
from .models import FreelanceInvoice
Claire Zuliani's avatar
Claire Zuliani committed
6 7

urlpatterns = [
8
    url(r'^client-invoices', LDPViewSet.urls(model=ClientInvoice)),
9
    url(r'^freelance-invoices', LDPViewSet.urls(model=FreelanceInvoice)),
10
]