Skip to content

Instantly share code, notes, and snippets.

@bmihelac
Created November 30, 2012 08:10
Show Gist options
  • Save bmihelac/4174458 to your computer and use it in GitHub Desktop.
Save bmihelac/4174458 to your computer and use it in GitHub Desktop.
FeinCMS content type admin inlines customization
from feincms.admin.item_editor import FeinCMSInline
class AuthorContentTypeInline(FeinCMSInline):
# InlineModelAdmin options
raw_id_fields = ('author',)
class AuthorContentType(models.Model):
author = models.ForeignKey(Author)
feincms_item_editor_inline = AuthorContentTypeInline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment