Hi Danny, Thanks. It was almost the issue.
I had a separate PageAdmin class deepcopy that was causing the duplication. 
I removed it then changed the deepcopy fieldsets of each admin class to the 
custom class.

On Saturday, January 9, 2016 at 1:28:45 AM UTC+3, Danny S wrote:
>
> On 8/01/2016 11:31 PM, George M wrote: 
>
> I'm not sure this is the issue, but: 
>
> > home_fieldsets = deepcopy(HomePageAdmin.fieldsets) 
> > home_fieldsets[0][1]["fields"].insert(1, "in_opd") 
> > HomePageAdmin.fieldsets = home_fieldsets 
>
> Here you are deepcopying HomePageAdmin.fieldsets, then changing it. 
>
> > 
> > about_fieldsets = deepcopy(PageAdmin.fieldsets) 
> > about_fieldsets[0][1]["fields"].insert(1, "in_opd") 
> > AboutAdmin.fieldsets = about_fieldsets 
>
> Here, and for the rest, you're copying PageAdmin.fieldsets. 
>
> Do you think that could be an issue? 
>
> The other thing you could try to debug the problem is chuck in some 
> prints of the fieldsets values in admin.py when you're changing them, 
> just to see what the duplicate entry might be. 
>
> Hope this helps 
>
> Seeya. Danny. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to