check in missing urlfilter files
diff --git a/xos/urlfilter/migrations/__init__.py b/xos/services/urlfilter/__init__.py
similarity index 100%
copy from xos/urlfilter/migrations/__init__.py
copy to xos/services/urlfilter/__init__.py
diff --git a/xos/services/urlfilter/admin.py b/xos/services/urlfilter/admin.py
new file mode 100644
index 0000000..fe99623
--- /dev/null
+++ b/xos/services/urlfilter/admin.py
@@ -0,0 +1,33 @@
+from django.contrib import admin
+
+from urlfilter.models import *
+from django import forms
+from django.utils.safestring import mark_safe
+from django.contrib.auth.admin import UserAdmin
+from django.contrib.admin.widgets import FilteredSelectMultiple
+from django.contrib.auth.forms import ReadOnlyPasswordHashField
+from django.contrib.auth.signals import user_logged_in
+from django.utils import timezone
+from django.contrib.contenttypes import generic
+from suit.widgets import LinkedSelect
+from core.admin import SingletonAdmin,SliceInline,ServiceAttrAsTabInline, ReadOnlyAwareAdmin, PlStackTabularInline
+
+class UrlFilterServiceAdmin(SingletonAdmin):
+ model = UrlFilterService
+ verbose_name = "Url Filter Service"
+ verbose_name_plural = "Url Filter Service"
+ list_display = ("backend_status_icon", "name","enabled")
+ list_display_links = ('backend_status_icon', 'name', )
+ fieldsets = [(None, {'fields': ['backend_status_text', 'name','enabled','versionNumber', 'description'], 'classes':['suit-tab suit-tab-general']})]
+ readonly_fields = ('backend_status_text', )
+ inlines = [SliceInline,ServiceAttrAsTabInline]
+
+ user_readonly_fields = ["name", "enabled", "versionNumber", "description"]
+
+ suit_form_tabs =(('general', 'URL Filter Details'),
+ ('slices','Slices'),
+ ('serviceattrs','Additional Attributes'),
+ )
+
+admin.site.register(UrlFilterService, UrlFilterServiceAdmin)
+
diff --git a/xos/urlfilter/migrations/0001_initial.py b/xos/services/urlfilter/migrations/0001_initial.py
similarity index 100%
rename from xos/urlfilter/migrations/0001_initial.py
rename to xos/services/urlfilter/migrations/0001_initial.py
diff --git a/xos/urlfilter/migrations/__init__.py b/xos/services/urlfilter/migrations/__init__.py
similarity index 100%
rename from xos/urlfilter/migrations/__init__.py
rename to xos/services/urlfilter/migrations/__init__.py
diff --git a/xos/services/urlfilter/models.py b/xos/services/urlfilter/models.py
new file mode 100644
index 0000000..adbb372
--- /dev/null
+++ b/xos/services/urlfilter/models.py
@@ -0,0 +1,11 @@
+from django.db import models
+from core.models import User, Service, SingletonModel, PlCoreBase, DiffModelMixIn
+import os
+from django.db import models
+from django.forms.models import model_to_dict
+
+class UrlFilterService(SingletonModel, Service):
+ class Meta:
+ app_label = "urlfilter"
+ verbose_name = "URL Filter Service"
+