On Saturday 06 March 2010 06:07:30 dogfuel wrote:
> most of you probably know this will not give the desired result - it
> shows the correct test, but not as a hyperlink.
Moving the method to ModelAdmin and setting `allow_tags` True on it should
solve this problem:
class Destination_admin(admin
In a model, I have added a method that builds text for a html link
(based on model attributes) similar to:
-
from django.db import models
class Destination(models.Model)
name = models.CharField(max_length=25)
location_nbr = models.CharField(max_length=4)
2 matches
Mail list logo