mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-18 15:57:44 +02:00
Migration for Lookup
This commit is contained in:
@@ -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),
|
||||
),
|
||||
]
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user