chore: module link model

This commit is contained in:
NarayanBavisetti 2023-08-18 15:33:25 +05:30
parent 02ac4cee22
commit c6c631199b

View File

@ -98,7 +98,7 @@ class ModuleIssue(ProjectBaseModel):
class ModuleLink(ProjectBaseModel): class ModuleLink(ProjectBaseModel):
title = models.CharField(max_length=255, null=True) title = models.CharField(max_length=255, blank=True, null=True)
url = models.URLField() url = models.URLField()
module = models.ForeignKey( module = models.ForeignKey(
Module, on_delete=models.CASCADE, related_name="link_module" Module, on_delete=models.CASCADE, related_name="link_module"