On Wednesday, October 10, 2012 10:39:58 AM UTC+1, DrMeers wrote:
On 10 October 2012 20:17, Tom Scytale <scy...@gmail.com> wrote:
> I was looking for a way to copy a page. I don't see any way to do it via the
> admin interface (tho I am missing a handful of buttons due to a minor
> incompatibility with the version of grappelli i'm running).
>
> I see a method Page.objects.create_copy() in 1.0.99 but it seems to have
> been removed in newer versions.
It is recommended that you use Django's built-in admin save-as
functionality [1],
how do I use that? - It'll have to be something like this, right?
from feincms.module.page.admin import PageAdmin
from feincms.module.page.models import Page
from django.contrib import admin
class MyPageAdmin(PageAdmin):
save_as = True
admin.site.unregister(Page)
admin.site.register(Page, MyPageAdmin)
And this will have to go into admin.py of some app that is listed in INSTALLED_APPS after feincms, right?
(I won't have the opportunity to try this for a few days but I'd like to check this is the right general direction)
t
however this is somewhat broken when it comes to
uploaded files etc [2,3,4], but works for simple cases.
I'll be
working on a solution for this for a couple of projects in the coming
week or two.
that would be very useful
thanks
t