Just to clarify that last bit about a mapping on the model since it's closest to what you originally described. Just pseudo-code, but you can see the idea.
class Model1(models.Model): FIELD_DISPLAY={ 'foo': ['a'], 'bar': ['b','c'] } a = models.CharField() b = models.ForeignKey('Model2') c = models.IntegerField() {% for field in form|field_type:"foo" %}{{field}}{% endfor %} {% for field in form|field_type:"bar" %}{{field}}{% endfor %} @register.filter def form_field(form,key): fields=form.Meta.model.FIELD_DISPLAY[key] return [form.fields[fn] for f in fields] -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.