Commit 86794592 authored by Claire Zuliani's avatar Claire Zuliani

Rename Invoice to ClientInvoice

parent a99f737b
__pycache__/*
/db.sqlite3
*.pyc
\ No newline at end of file
from django.contrib import admin
from guardian.admin import GuardedModelAdmin
from .models import Invoice
from .models import ClientInvoice
admin.site.register(Invoice)
admin.site.register(ClientInvoice)
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-12 19:12
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoldp_invoices', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Invoice',
new_name='ClientInvoice',
),
]
......@@ -2,7 +2,7 @@ from django.conf import settings
from django.db import models
import datetime
class Invoice(models.Model):
class ClientInvoice(models.Model):
# customer = models.ForeignKey(User, on_delete=models.CASCADE)
# provider = models.ForeignKey(User, on_delete=models.CASCADE)
STATES = (
......
from django.conf.urls import url, include
from django.conf import settings
from djangoldp.views import LDPViewSet
from .models import Invoice
from .models import ClientInvoice
urlpatterns = [
url(r'^', LDPViewSet.urls(model=Invoice)),
]
url(r'^client-invoices', LDPViewSet.urls(model=ClientInvoice)),
]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment