Skip to content

Commit

Permalink
Create form and view stubs for copying a budget.
Browse files Browse the repository at this point in the history
  • Loading branch information
levidyrek committed Feb 19, 2019
1 parent 48b4888 commit 5cb2081
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions budgetapp/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from django import forms
from django.contrib.auth.models import User
from django.http import HttpResponse, JsonResponse
from django.views.generic import View
from rest_framework import generics, permissions, viewsets
from rest_framework.authtoken.models import Token
from rest_framework.authtoken.views import ObtainAuthToken
Expand Down Expand Up @@ -28,6 +30,15 @@ def get_queryset(self):
return Budget.objects.filter(owner=self.request.user)


class CopyBudgetForm(forms.Form):
pass


class CopyBudgetView(View):
def post(self, request):
pass


class BudgetCategoryGroupViewSet(viewsets.ModelViewSet):
queryset = BudgetCategoryGroup.objects.all()
serializer_class = BudgetCategoryGroupSerializer
Expand Down

0 comments on commit 5cb2081

Please sign in to comment.