Re: 0.96 to 1.0 admin conversion

2009-02-11 Thread homebrew79
I figured this out. I had to override the get_formset method. This seems a little hackish, but it worked. class ConfigV2ParameterInline(admin.TabularInline): model = ConfigV2Parameter def get_formset(self, request, obj=None, **kwargs): self.extra = 'add' in request.path and 10

0.96 to 1.0 admin conversion

2009-02-10 Thread homebrew79
I'm in the process of converting a project from 0.96 to 1.0. The newforms admin has me a little stumped. The way I currently have one of my models set up is like so: cpip = models.ForeignKey('Cpip', edit_inline=models.TABULAR, num_in_admin=10, num_extra_on_change=3) That will give me 10