public
Fork of bartTC/django-attachments
Description: A generic Django application to attach Files (Attachments) to any model.
Homepage: http://www.mahner.org/
Clone URL: git://github.com/jezdez/django-attachments.git
name age message
file AUTHORS Thu May 07 14:43:15 -0700 2009 Added release stuff, yay [jezdez]
file LICENSE Thu May 07 14:36:15 -0700 2009 Added a short README, License and Authors file. [bartTC]
file MANIFEST.in Thu May 07 14:43:15 -0700 2009 Added release stuff, yay [jezdez]
file README.rst Thu May 07 14:36:15 -0700 2009 Added a short README, License and Authors file. [bartTC]
directory attachments/ Thu May 07 14:29:55 -0700 2009 Initial structure and data [bartTC]
file setup.py Thu May 07 17:02:25 -0700 2009 Added fraking setup.py [jezdez]
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 %}