Migration for Lookup

This commit is contained in:
Yogesh Ojha
2021-04-25 23:43:49 +05:30
parent e19c19dfa6
commit 995e25fabe
4 changed files with 28 additions and 0 deletions
@@ -0,0 +1,18 @@
# Generated by Django 3.1.3 on 2021-03-07 11:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scanEngine', '0003_auto_20210307_0304'),
]
operations = [
migrations.AddField(
model_name='interestinglookupmodel',
name='custom_type',
field=models.BooleanField(default=False),
),
]
+1
View File
@@ -44,3 +44,4 @@ class Configuration(models.Model):
class InterestingLookupModel(models.Model):
keywords = models.TextField(null=True, blank=True)
custom_type = models.BooleanField(default=False)
View File
+9
View File
@@ -0,0 +1,9 @@
from django import template
from urllib.parse import urlparse
register = template.Library()
@register.filter(name='split')
def split(value, key):
return value.split(key)