2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 06:17:07 +00:00

Fixing non-null error, even though it should be allowed

This commit is contained in:
Philip Sargent
2022-07-05 15:57:49 +03:00
parent 779afc2f2a
commit 5d7d2b82b2
2 changed files with 4 additions and 2 deletions

View File

@@ -71,8 +71,8 @@ def writetrogglefile(filepath, filecontent):
class Area(TroggleModel):
short_name = models.CharField(max_length=100)
name = models.CharField(max_length=200, blank=True, null=True)
description = models.TextField(blank=True,null=True)
parent = models.ForeignKey('Area', blank=True, null=True,on_delete=models.SET_NULL)
description = models.TextField(blank=True, null=True)
parent = models.ForeignKey('Area', blank=True, null=True, on_delete=models.SET_NULL)
def __str__(self):
if self.parent: