extending flatpages

42 views
Skip to first unread message

Carl Karsten

unread,
Jul 3, 2008, 4:42:25 PM7/3/08
to django...@googlegroups.com
I need to add some fields to flatpage model. (like header image)

is there a clean way to do this?

I saw it come up before, and one comment was "model subclassing is not
supported." So now that it is supported... I am going to learn that it wont
help me with this problem?

Carl K


benjaoming

unread,
Jul 13, 2008, 5:49:24 AM7/13/08
to Django users
I just got started with Django and not before long I was thinking the
same as you. So I wrote this blog post:

http://overtag.dk/wordpress/2008/07/tip-extending-django-flatpages/

It's really simple, but quite a valuable technique, I think. The main
idea is: Instead of extending the original flatpages module, we simply
copy it and modify it.

/ Benjamin
Reply all
Reply to author
Forward
0 new messages