Re: Model field that links to a page ID, or external URL

2012-10-10 Thread Andy Baker
(long dead thread resuscitation attempt) I'm not sure I understand your objections. Why would absolute url change? And if it does you still have to worry about external links breaking. Surely the answer is to ensure you don't change the value of get_absolute_url. Don't base it on anything that'

Re: Model field that links to a page ID, or external URL

2012-02-14 Thread Diederik van der Boor
Op 13 feb. 2012, om 18:50 heeft Jonathan Paugh het volgende geschreven: > Each model supports a get_absolute_url(self) method, which allows you to > retrieve each object's url in whatever way you want, including pulling > values from self (i.e. the model object.). Returned urls are in serveral >

Re: Model field that links to a page ID, or external URL

2012-02-13 Thread Jonathan Paugh
On 02/13/2012 11:09 AM, Diederik van der Boor wrote: > Hi, > > In CMS interfaces I generally encounter a problem with URL fields. > In most situations, the following options need to be supported: > - An URL to an external page (Django's URLField can handle that) > - An URL to an internal page (e.

Model field that links to a page ID, or external URL

2012-02-13 Thread Diederik van der Boor
Hi, In CMS interfaces I generally encounter a problem with URL fields. In most situations, the following options need to be supported: - An URL to an external page (Django's URLField can handle that) - An URL to an internal page (e.g. Django CMS) - An URL to an other model (e.g. article) How can