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