Mezzanine プロジェクトを拡張する django アプリの構築に取り組んでいます。Mezzanine にはギャラリー アプリ (写真) があります。単一の画像と各ギャラリー ページへのリンクを含むランディング ページとして機能する「ポートフォリオ」ページを作成したいと考えています。
各ギャラリー (Gallery) には、複数の画像 (GalleryImage) を含めることができます。管理者からギャラリーを選択してから、表示する画像を選択したいと思います。しかし、私は何をすべきか理解できないようです。
これが私のモデルです:
class GalleriesThumb(models.Model):
    relatedlandingpage = models.ForeignKey(LandingPage)
    relatedgallery = models.ForeignKey(Galleries)
    thumb = models.ManyToManyField(GalleryImage)
    def __unicode__(self):
        return self.name
class Galleries(models.Model):
    landingpage = models.ForeignKey(LandingPage)
    tagline = models.CharField(max_length=100)
    galleries = models.ManyToManyField(Gallery)
    def __unicode__(self):
        return self.name
class LandingPage(models.Model):
    gallerytitle = models.CharField(max_length=200)
    def __unicode__(self):
        return self.name
私の管理者は次のようなものです:
class GalleryInline(admin.InlineModelAdmin)
    model = Galleries
    model = GalleriesThumb
    list_display = galleries
    list_display = thumb
class LangingPageAdmin(admin.ModelAdmin):
    fieldsets = (
        (None, {
            'fields': ('gallerytitle')
        })
    inlines = [GalleryInline,]
これは私が望んでいることではないことに気付きましたが、ギャラリーに関連する画像で list_display を取得するにはどうすればよいですか。メソッドである必要があると確信しています。または、行われた選択がページのコンテンツを定義する場合、完全に間違ったアプローチをとっています。(選択を保存するためのフィールドも不足していることに気付きました。)
ばかげた質問で申し訳ありませんが、実際にアプリを試すのはこれが初めてです。