38
42
django-attachments comes with some templatetags to add or delete attachments
39
43
for your model objects in your frontend.
42
46
model instance. You can optionally define a variable name in which the attachment
43
47
list is stored in the template context. The default context variable name is
44
48
``attachments`` Example::
46
50
{% get_attachments_for entry as "attachments_list" %}
49
53
model instance. Example::
51
55
{% attachment_form [object] %}
53
57
It returns an empty string if the current user is not logged in.
58
62
{% for att in attachment_list %}