would this be preferable?
--------------------------------------------------------
from admin.py
--------------------------------------------------------
class HDChannelInline(admin.TabularInline):
model = HDChannel
extra = 0
template = 'admin/edit_inline/tabular.html'
def get_formset(self, request, obj=None, **kwargs):
if obj is not None:
if obj.asset_type == 'broadcast_radio':
kwargs['extra'] = 2
return super(HDChannelInline, self).get_formset(request, obj,
**kwargs)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.