Figured it out. Added this to my Model:

@property
        def spacer(self):
                return (25-len(str(self.team.name)))*' '

then in my template just added {{ team.spacer }}



On Jun 17, 7:17 pm, Chris McComas <mccomas.ch...@gmail.com> wrote:
> I have this as my template code:
>
> http://dpaste.com/555651/
>
> This is the HTML it is outputting, which makes sense. What I'm trying
> to do is make it so the closing </a> tag is right after the team name
> and the whitespace from the ljust after it.
>
> http://dpaste.com/555649/

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to