if var2 %}{{ ... }}
> {% endif %}{% if var3 %}{{ ... }}
> {% endif %}
> footer
>
>
> Regards
> Scott
>
> On May 12, 2:20 pm, Noah Watkins wrote:
>
>
>
>
>
> > Peter
>
> > I don't believe "spaceless" will work because
ecause it is in
the block.
On May 12, 11:10 am, Peter Landry wrote:
> If you want to keep the newlines in your template, you can
> usehttp://docs.djangoproject.com/en/1.1/ref/templates/builtins/#spaceless
>
> Peter
>
> On 5/12/10 2:02 PM, "Noah Watkins" wrote:
>
&
I have a variable amount of lines that need to be displayed in a
block:
header
{% if var1 %}{{ ... }}{% endif %}
{% if var2 %}{{ ... }}{% endif %}
{% if var3 %}{{ ... }}{% endif %}
footer
However, if some of the if-statements are not evaluated to be true
then the line breaks are stil
Looking for links to solutions to the following situation:
class Book(models.Model):
...
class Author(model.Models):
book = models.ForeignKey(Book)
...
I'd like to design a form for creating books that allows multiple authors to
be added before the book form is submitted.
Clearly some
4 matches
Mail list logo