Optimasi Django-Admin

Rules:

  1. Jangan terlalu banyak memunculkan relasi di halaman add/edit
  2. Gunakan list_select_related di list view
  3. Gunakan readonly_fields untuk relasi

Drawbacks:

Limitasi di atas dapat mengganggu proses penambahan data, karena kita tidak bisa memilih data-data relasi.

References:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s