init project

This commit is contained in:
2025-05-22 17:18:17 +02:00
commit 7fa6ecae22
22 changed files with 382 additions and 0 deletions

View File

View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
softdesk/support/apps.py Normal file
View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class SupportConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'support'

View File

View File

@@ -0,0 +1,51 @@
from django.db import models
class Project(models.Model):
author =
contributor =
class Issue(models.Model):
class Priority(models.TextChoices):
LOW = 'L'
MEDIUM = 'M'
HIGH = 'H'
class Status(models.TextChoices):
TODO = 'ToDo'
INPROGRESS = 'InProgress'
FINISHED = 'Finished'
class Tag(models.TextChoices):
BUG = 'Bug'
FEATURE = 'Feature'
TASK = 'Task'
title = models.CharField(max_lenght=255, verbose_name='title')
description = models.TextField()
project = models.ForeignKey(Project, null=True, on_delete=models.SET_NULL, blank=True)
status = models.CharField(Status.choices, max_length=15)
priority = models.CharField(Priority.choices, max_lenght=15)
tag = models.CharField(Tag.choices, max_length=15)
contributors = models.ManyToManyField(
settings.AUTH_USER_MODEL, through='IssueContributors', related_name='contributors')
assigned_to =
class Comment(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=SET
issue = models.ForeignKey(Issue, on_delete=models.CASCADE)
class IssueContributors(models.Model):
contributor = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.SET_NULL)
issue = "ToDo"

View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View File

@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.