from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, QueryDict
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, QueryDict
-from philo.admin import EntityAdmin, AddTagAdmin, COLLAPSE_CLASSES
+from philo.admin import EntityAdmin, COLLAPSE_CLASSES
+from philo.admin.widgets import EmbedWidget
from philo.contrib.penfield.models import BlogEntry, Blog, BlogView, Newsletter, NewsletterArticle, NewsletterIssue, NewsletterView
from philo.contrib.penfield.models import BlogEntry, Blog, BlogView, Newsletter, NewsletterArticle, NewsletterIssue, NewsletterView
list_filter = ['author', 'blog']
date_hierarchy = 'date'
search_fields = ('content',)
list_filter = ['author', 'blog']
date_hierarchy = 'date'
search_fields = ('content',)
)
related_lookup_fields = {'fk': raw_id_fields}
prepopulated_fields = {'slug': ('title',)}
)
related_lookup_fields = {'fk': raw_id_fields}
prepopulated_fields = {'slug': ('title',)}
list_filter = ('newsletter',)
date_hierarchy = 'date'
search_fields = ('title', 'authors__name',)
list_filter = ('newsletter',)
date_hierarchy = 'date'
search_fields = ('title', 'authors__name',)
def author_names(self, obj):
return ', '.join([author.get_full_name() for author in obj.authors.all()])
def author_names(self, obj):
return ', '.join([author.get_full_name() for author in obj.authors.all()])