[RMV] HORILLA VIEWS: Unused models
This commit is contained in:
@@ -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])
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user