.
This commit is contained in:
@@ -35,6 +35,9 @@ class Entry(models.Model):
|
||||
self.questions = self.questions.replace("\r\n", "\n")
|
||||
return super().save(*args, **kwargs)
|
||||
|
||||
def get_current_format(self):
|
||||
return Formats.objects.filter(format=self.questions).first()
|
||||
|
||||
class Formats(models.Model):
|
||||
name = models.CharField(max_length=200)
|
||||
format = models.TextField(blank=True)
|
||||
|
||||
Reference in New Issue
Block a user