Changeset 2339 in main for trunk/docs


Ignore:
Timestamp:
04/04/13 13:08:50 (6 years ago)
Author:
pcosquer
Message:

docs: s/get_profile()/profile/
refs #187

Location:
trunk/docs/en
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/en/devel/applications/badges/autobiographer.py

    r1579 r2339  
    1212    progress_start = 0 
    1313    progress_finish = 2 
    14      
    15     # optional functions     
     14 
     15    # optional functions 
    1616    def get_user(self, instance): 
    1717        return instance.user 
     
    2222    def check_bio(self, instance): 
    2323        return instance.bio 
    24          
     24 
    2525    # required functions 
    2626    def get_progress(self, user): 
    2727        has_email = 1 if user.email else 0 
    28         has_bio = 1 if user.get_profile().bio else 0 
     28        has_bio = 1 if user.profile.bio else 0 
    2929        return has_email + has_bio 
    30      
     30 
  • trunk/docs/en/whatsnew-1.3.rst

    r2274 r2339  
    7676    * static files 
    7777 
    78 Call :func:`~models.user.get_profile` instead of ``user.get_profile()``. 
     78Call :func:`~user.profile` instead of ``user.get_profile()``. 
    7979 
    8080Rich text | Wiki syntax 
Note: See TracChangeset for help on using the changeset viewer.