From 3a54cdb85027e4a59ca6d78f5b91dbf7be77afd0 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 1 Feb 2019 09:27:21 -0600 Subject: redid jrnl to speed things up and use less memory --- app/links/admin.py | 2 -- app/links/forms.py | 13 ------------- 2 files changed, 15 deletions(-) (limited to 'app/links') diff --git a/app/links/admin.py b/app/links/admin.py index 3bec927..b1aabc0 100644 --- a/app/links/admin.py +++ b/app/links/admin.py @@ -7,12 +7,10 @@ from django.http import HttpResponseRedirect from utils.widgets import TagListFilter from .models import Link -from .forms import LinkForm @admin.register(Link) class LinkAdmin(admin.ModelAdmin): - form = LinkForm list_display = ('title', 'admin_link', 'pub_date', 'status') search_fields = ['title', 'description', 'url'] list_filter = ['status', TagListFilter] diff --git a/app/links/forms.py b/app/links/forms.py index 80a7c50..b7a2343 100644 --- a/app/links/forms.py +++ b/app/links/forms.py @@ -1,17 +1,4 @@ from django import forms -import dal -from dal_select2_taggit.widgets import TaggitSelect2 from .models import Link from dal import autocomplete - - -class LinkForm(autocomplete.FutureModelForm): - class Meta: - model = Link - fields = ('tags',) - widgets = { - 'tags': autocomplete.TaggitSelect2( - 'tag-autocomplete' - ) - } -- cgit v1.2.3-70-g09d2