はじめまして、道須といいます。

change_from.htmlを templates/admin/小文字アプリケーション名/小文字モデル名/ にコピーすると、
そのモデルの(追加ではなく)変更画面で、コピーしたテンプレートが使用されます。
これは桑原さんがやりたいこととはずれているように思います。

Paymentの親(ForeignKeyの参照先)となるモデルクラスがある場合はTabularInlineを使うと、
おそらく想定に近い画面を生成できます。
https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#inlinemodeladmin-objects
画面例: https://code.google.com/p/django-tiledinline/wiki/Screenshots

もし親がない場合は、formsetの使用方法を調べてadminではなく自分のアプリケーションで画面を
実装するほうが近道だと感じました。
http://django-docs-ja.readthedocs.org/en/latest/topics/forms/formsets.html



2015-07-05 22:06 GMT+09:00 Eitaro Kuwabara <eitarokuwab...@gmail.com>:
>
> はじめまして。
> 桑原と申します。
> Djangoは最近始めたばかりの初心者です。
>
> Djangoで工事台帳を作成しており、
> 支払データ(Paymentモデル)を入力するAdmin画面を作成しようとしています。
>
> 上の画像のように、テーブル形式で入力していけるようにカスタマイズしたいです。
> 一方で、Djangoが自動で作成してくれた画面は、下の画像のとおりです。
>
> 要は、1項目ごとにsaveするのではなく、ある程度入力してから、saveできるようにしたいのです。
> 下記のドキュメンテーションによると、
> django/contrib/admin/templates/admin/
> の中にあるテンプレートをコピーして、templates/admin/my_appディレクトリに置けば良いということですが、その意味がよく分かりませんでした。
> http://django-docs-ja.readthedocs.org/en/latest/ref/contrib/admin/index.html#ref-contrib-admin-overriding-admin-templates
>
> とりあえず、change_form.htmlというテンプレートファイルを、
> /templates/admin/cls/payment/
> ディレクトリにコピーしてみたのですが、全く何も変わりません。
>
> どのようにしたら、変更できるのでしょうか?
> お分かりの方、ご教示いただければ幸いです。
>
>
>
> --
> --
> ----------------- http://djangoproject.jp/ -----------------
> You received this message because you are subscribed to the Google Groups 
> "django-ja" group.
> To post to this group, send email to django-ja@googlegroups.com
> To unsubscribe from this group, send email to 
> django-ja-unsubscr...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/django-ja
> ---
> このメールは Google グループのグループ「django-ja」に登録しているユーザーに送られています。
> このグループから退会し、グループからのメールの配信を停止するには django-ja+unsubscr...@googlegroups.com 
> にメールを送信してください。
> その他のオプションについては https://groups.google.com/d/optout にアクセスしてください。




-- 
株式会社マリーチ / Marici, Inc.
  〒150-0002 東京都渋谷区渋谷3-5-16 渋谷3丁目スクエアビル2F
  http://www.marici.co.jp/
  Tel: 03-5843-6456 / Fax: 03-4333-0282
道須利一 / Michisu, Toshikazu
  mich...@marici.co.jp

-- 
-- 
-----------------                       http://djangoproject.jp/                
         -----------------
You received this message because you are subscribed to the Google Groups 
"django-ja" group.
To post to this group, send email to django-ja@googlegroups.com
To unsubscribe from this group, send email to 
django-ja-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-ja
--- 
このメールは Google グループのグループ「django-ja」の登録者に送られています。
このグループから退会し、グループからのメールの配信を停止するには django-ja+unsubscr...@googlegroups.com 
にメールを送信してください。
その他のオプションについては、https://groups.google.com/d/optout にアクセスしてください。

メールによる返信