Re: add 'link' to admin interface of model

2009-04-15 Thread Psihonavt
On 10 Кві, 12:18, "ramu...@gmail.com" wrote: > If I understand correctly the same problem solve by this code: > > > def colored_name(self): >     return '%s %s' % > (self.color_code, self.first_name, self.last_name) > colored_name.allow_tags = True > > > manualhttp://docs.djangoproject.com/en

Re: add 'link' to admin interface of model

2009-04-10 Thread ramu...@gmail.com
If I understand correctly the same problem solve by this code: def colored_name(self): return '%s %s' % (self.color_code, self.first_name, self.last_name) colored_name.allow_tags = True manual http://docs.djangoproject.com/en/dev/ref/contrib/admin/#list-display On Apr 9, 8:31 pm, Psiho

add 'link' to admin interface of model

2009-04-09 Thread Psihonavt
good evening guys! have a question: in my model i have a field, like guarantee = models.CharField(_("Link to guarantee"), max_length=250, blank=True) to this charfield, on some conditions, i generate some link (f.e. http://myshop.com/guarantee/47/) What i want is: in admin interface of my model, i