From 716ec7b92342dd2fe4d26b20087f10ca4a2c9755 Mon Sep 17 00:00:00 2001 From: Horilla Date: Tue, 18 Jun 2024 14:25:48 +0530 Subject: [PATCH] [RMV] HORILLA VIEWS: Unused models --- horilla_views/admin.py | 10 ++------- horilla_views/models.py | 46 ----------------------------------------- 2 files changed, 2 insertions(+), 54 deletions(-) diff --git a/horilla_views/admin.py b/horilla_views/admin.py index 3334b93b7..03cb2a23a 100644 --- a/horilla_views/admin.py +++ b/horilla_views/admin.py @@ -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]) diff --git a/horilla_views/models.py b/horilla_views/models.py index 93a54c6f9..67eca09ce 100644 --- a/horilla_views/models.py +++ b/horilla_views/models.py @@ -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()