I have the following table:
class TaskTable(tables.Table):
def render_foo(self):
raise Exception()
class Meta:
model = Task
fields = ['foo']
for the following model:
class Task(models.Model):
priority = models.PositiveIntegerField()
title = models.CharField(max_length=1024)
content = models.TextField(null=True, blank=True)
According to the docs, render_foo
won't be executed if it is considered an empty value.
My requirement is that foo
is not found in the Model. How can I implement the column foo
?