Changeset 1c853ea


Ignore:
Timestamp:
May 16, 2010, 1:26:08 AM (16 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, fysm-4-1, iframe, space-access, stable, stage, test-hooks
Children:
57f8ffa
Parents:
2a6907a
git-author:
Alex Dehnert <adehnert@…> (05/16/10 01:26:08)
git-committer:
Alex Dehnert <adehnert@…> (05/16/10 01:26:08)
Message:

Make logo optional

Location:
asadb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/models.py

    rc27da9e r1c853ea  
    1313    contact_email = models.EmailField(help_text="Give an address for students interested in joining the group to email (e.g., an officers list)")
    1414    description = models.TextField(help_text="Explain in about three or four sentences what your group does and why incoming freshmen should get involved.")
    15     logo = models.ImageField(upload_to='fysm/logos', )
     15    logo = models.ImageField(upload_to='fysm/logos', blank=True, )
    1616    categories = models.ManyToManyField('FYSMCategory', blank=True, )
    1717
  • asadb/template/fysm/fysm_listing.html

    rc27da9e r1c853ea  
    2424    <h3><a href='{{fysm.website}}'>{{fysm.display_name}}</a></h3>
    2525    <div class='logo'>
     26        {% if fysm.logo %}
    2627        <img src='{{ MEDIA_URL }}{{fysm.logo}}' alt='{{fysm.display_name}} logo' />
     28        {% else %}
     29        <p>[ No logo ]</p>
     30        {% endif %}
    2731    </div>
    2832    <p class='data'>{{fysm.description}}</p>
Note: See TracChangeset for help on using the changeset viewer.