Tuesday, August 31, 2010

Re: Overriding flatpages class meta

Actually, I would *avoid* modifying the flatpages source, but that does raise a good point -- look at the source and copy/paste the Meta defined inside the class, making the overrides you need in your subclass (redefine the Meta).
You'll have to watch for changes if/when you switch django versions, but hey -- if it works, it works.

Owen Nelson



On Tue, Aug 31, 2010 at 12:38 PM, Karim Gorjux <lemieliste@gmail.com> wrote:
Try to modify the flatpages source! You can find it directly in your
django installation.


--
Karim Gojux
www.karimblog.net

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment