tnc-ba / strongTNC

BYOD TNC Database Management Tool
GNU Affero General Public License v3.0
0 stars 0 forks source link

Use defer() in tag list view #239

Open dbrgn opened 10 years ago

dbrgn commented 10 years ago

https://github.com/tnc-ba/strongTNC/commit/74190119c542bbdd538c737855fdb878d279056a#apps-swid-views-py-P8

When loading tags without accessing the tag xml field, we should defer loading of that field.

This can be done with defer(). Or if we query the model often, we could even create a separate unmanaged model (see defer documentation for more details).