~panosl/+junk/django-attachments

« back to all changes in this revision

Viewing changes to README.rst

  • Committer: Martin Mahner
  • Date: 2009-05-08 10:23:13 UTC
  • Revision ID: git-v1:a5447d66f90775fc01c678ba9ae70d1918563761
Fixed README

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
   list is stored in the template context. The default context variable name is
44
44
   ``attachments`` Example::
45
45
   
46
 
   {% get_attachments entry as "attachments_list" %}
 
46
   {% get_attachments_for entry as "attachments_list" %}
47
47
 
48
48
2. **``attachment_form``**: Renders a upload form to add attachments for the given
49
49
   model instance. Example::
65
65
 
66
66
Quick Example:
67
67
==============
 
68
 
68
69
::
 
70
    
69
71
    {% load attachments_tags %}
70
72
    {% get_attachments_for entry as "my_entry_attachments" %}
71
 
 
 
73
    
72
74
    {% if my_entry_attachments %}
73
75
    <ul>
74
76
    {% for attachment in my_entry_attachments %}