Add search all keywords in model
This commit is contained in:
@@ -16,6 +16,7 @@ class Feed(models.Model):
|
||||
icon = models.FileField(upload_to='feed-icons', blank=True, null=True,
|
||||
validators=[FileExtensionValidator(['png', 'svg'])])
|
||||
keywords = models.TextField(blank=False, null=False)
|
||||
match_all_keywords = models.BooleanField(blank=True, default=False)
|
||||
|
||||
|
||||
class FeedEntry(models.Model):
|
||||
@@ -24,7 +25,7 @@ class FeedEntry(models.Model):
|
||||
|
||||
|
||||
class Tweet(models.Model):
|
||||
icon = models.ForeignKey(Icon, on_delete=models.CASCADE,null=True)
|
||||
icon = models.ForeignKey(Icon, on_delete=models.CASCADE, null=True)
|
||||
text = models.CharField(max_length=137)
|
||||
date_time = models.DateTimeField()
|
||||
url = models.CharField(max_length=100)
|
||||
|
||||
Reference in New Issue
Block a user