Changeset 728


Ignore:
Timestamp:
05/22/12 14:39:45 (2 years ago)
Author:
pmartin
Message:

Now is more versatible the func See #635

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inplaceeditform/trunk/inplaceeditform/commons.py

    r727 r728  
    9898 
    9999 
    100 def get_static_url(): 
     100def get_static_url(subfix='inplaceeditform'): 
    101101    static_url = getattr(settings, 'STATIC_URL', None) 
    102102    if static_url: 
    103103        return static_url 
    104104    else:  # To old django versions 
    105         return '%sinplaceeditform/' % getattr(settings, 'MEDIA_URL', None) 
     105        return '%s%s/' % (getattr(settings, 'MEDIA_URL', None), subfix) 
Note: See TracChangeset for help on using the changeset viewer.