[RMV] HORILLA VIEWS: Unused models

This commit is contained in:
Horilla
2024-06-18 14:25:48 +05:30
parent 7c3a11a044
commit 716ec7b923
2 changed files with 2 additions and 54 deletions

View File

@@ -1,11 +1,5 @@
from django.contrib import admin
from horilla_views.models import (
ActiveGroup,
ActiveTab,
ParentModel,
ToggleColumn,
childModel,
)
from horilla_views.models import ActiveGroup, ActiveTab, ToggleColumn
admin.site.register([ToggleColumn, ParentModel, childModel, ActiveTab, ActiveGroup])
admin.site.register([ToggleColumn, ActiveTab, ActiveGroup])

View File

@@ -50,49 +50,3 @@ class ActiveGroup(HorillaModel):
path = models.CharField(max_length=256)
group_target = models.CharField(max_length=256)
group_by_field = models.CharField(max_length=256)
class ParentModel(models.Model):
""" """
title = models.CharField(max_length=50)
def __str__(self) -> str:
return self.title
class DemoCompany(models.Model):
title = models.CharField(max_length=20)
def __str__(self) -> str:
return self.title
class DemoDepartment(models.Model):
"""
DemoDepartment
"""
title = models.CharField(max_length=20)
company_id = models.ForeignKey(
DemoCompany,
on_delete=models.CASCADE,
null=True,
blank=True,
verbose_name="Company",
)
def __str__(self) -> str:
return self.title
class childModel(models.Model):
""" """
title_id = models.ForeignKey(
ParentModel, on_delete=models.CASCADE, verbose_name="Title"
)
department_id = models.ForeignKey(
DemoDepartment, on_delete=models.CASCADE, null=True, verbose_name="Department"
)
description = models.TextField()