Question: Django project. As a user, I will be able to register hours by stamping myself in and out. Layout for tasks and sorting Search for
Django project.
As a user, I will be able to register hours by stamping myself in and out.
Layout for tasks and sorting
Search for tasks in a list, sort by criteria
Select multiple tasks, distribute by percentage for how much worked on each
Add comment to time entry
Button to stamp in
button to stamp out (when user stamps print registration to database is printed)
tests.py
from django.test import TestCase # Create your tests here.
admin.py
from django.contrib import admin # Register your models here.
apps.py
from django.apps import AppConfig class WorkregConfig(AppConfig): name = 'workreg'
models.py class Workreg(): def __str__(self): return str(self.author) #+ ": " + str(self.Task_Category) author = models.ForeignKey(User, on_delete=models.CASCADE) date = models.DateTimeField(verbose_name="date", auto_now_add=True) is_active = models.BooleanField(default=True) comment = models.TextField(verbose_name="comment") start_time = models.TimeField(verbose_name="start time", auto_now_add=True) end_time = models.TimeField(verbose_name="end time", auto_now_add=True) #create variable with remote key for task / task
views.py
from django.shortcuts import render # Create your views here.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
