Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_templatetag(self):
class TestWidget(Widget):
template = "hello.html"
def get_context(self):
return {"hello":"world"}
from automatix.index.models import Menu
from django.contrib import admin
class MenuAdmin(admin.ModelAdmin):
fieldsets = [
("General", {'fields': ['name', 'url', 'order', 'enabled']}),
]
list_display = ('name', 'url', 'order', 'enabled')
search_fields = ['name', 'url']
list_filter = ['enabled']
admin.site.register(Menu, MenuAdmin)