16 lines
545 B
Python
16 lines
545 B
Python
# -*- coding: utf-8 -*-
|
|
from django import forms
|
|
from django.conf import settings
|
|
from taggit_autosuggest.widgets import TagAutoSuggest
|
|
|
|
|
|
class LatestEntriesForm(forms.ModelForm):
|
|
def __init__(self, *args, **kwargs):
|
|
super(LatestEntriesForm, self).__init__(*args, **kwargs)
|
|
self.fields['tags'].widget = TagAutoSuggest('taggit.Tag')
|
|
|
|
class Media:
|
|
css = {
|
|
'all': ('%sdjangocms_blog/css/%s' % (settings.STATIC_URL,
|
|
'djangocms_blog_admin.css'),)
|
|
}
|