diff options
author | luxagraf <sng@luxagraf.net> | 2019-02-01 09:27:21 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-02-01 09:27:21 -0600 |
commit | 3a54cdb85027e4a59ca6d78f5b91dbf7be77afd0 (patch) | |
tree | 5fedfaa18d46d4da45ef9504b511eaa74bda4eae /app/links | |
parent | 34f95ec85a7956515f810c9fda7d9650edc7da30 (diff) |
redid jrnl to speed things up and use less memory
Diffstat (limited to 'app/links')
-rw-r--r-- | app/links/admin.py | 2 | ||||
-rw-r--r-- | app/links/forms.py | 13 |
2 files changed, 0 insertions, 15 deletions
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' - ) - } |