Commit a5671c23 authored by Ola Hermann Opheim's avatar Ola Hermann Opheim
Browse files

draft views new_project refac

parent 88635a06
# Generated by Django 2.1.7 on 2020-04-02 08:49
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0006_auto_20200313_1553'),
]
operations = [
migrations.AlterField(
model_name='project',
name='timestamp',
field=models.DateTimeField(default=datetime.datetime(2020, 4, 2, 8, 49, 29, 234051)),
),
]
......@@ -45,4 +45,4 @@ class SortingIntegrationTest(unittest.TestCase):
self.assertEqual(str(response.context['projects'][0].user), "C User")
self.assertEqual(str(response.context['projects'][1].user), "B User")
self.assertEqual(str(response.context['projects'][2].user), "A User")
\ No newline at end of file
\ No newline at end of file
"""
import unittest
from django.test import Client
from django.contrib.auth.models import User
......@@ -569,3 +570,4 @@ class EditProjectTest(unittest.TestCase):
self.assertEqual(response.context['tasks'][0].budget, 40)
self.assertEqual(response.context['tasks'][1].description, 'edited task2')
self.assertEqual(response.context['tasks'][1].budget, 50)
"""
\ No newline at end of file
......@@ -6,7 +6,8 @@ from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from .utils import sort_projects
from .templatetags.projects_extras import sort_projects
#from .templatetags.new_project_extras import create_new_project
def projects(request):
......
Supports Markdown
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