jezdez / django-attachments forked from bartTC/django-attachments
- Source
- Commits
- Network (2)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
b1f74ca
Jannis Leidel (author)
Thu May 07 17:02:25 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
AUTHORS | Thu May 07 14:43:15 -0700 2009 | |
| |
LICENSE | Thu May 07 14:36:15 -0700 2009 | |
| |
MANIFEST.in | Thu May 07 14:43:15 -0700 2009 | |
| |
README.rst | Thu May 07 14:36:15 -0700 2009 | |
| |
attachments/ | Thu May 07 14:29:55 -0700 2009 | |
| |
setup.py | Thu May 07 17:02:25 -0700 2009 |
README.rst
django-attachments
django-attachments is a generic set of template tags to attach any kind of files to any models.
Quick Example: ==============:
{% load attachments_tags %}
{% get_attachments_for entry as "my_wiki_attachments" %}
{% if my_wiki_attachments %}
<ul>
{% for attachment in my_wiki_attachments %}
<li>
<a href="{{ attachment.attachment_file.url }}">{{ attachment.filename }}</a>
{% attachment_delete_link attachment %}
</li>
{% endfor %}
</ul>
{% endif %}
{% attachment_form entry %}
