Revision 3c7528c9 snf-astakos-app/astakos/im/models.py

b/snf-astakos-app/astakos/im/models.py
157 157
        resource_presentation = RESOURCES_PRESENTATION_DATA.get('resources', {})
158 158
        presentation = resource_presentation.get(resource, {})
159 159
        _presentation_data[resource] = presentation
160
    return presentation 
160
    return presentation
161 161

  
162 162
class Resource(models.Model):
163 163
    name = models.CharField(_('Name'), max_length=255)
......
176 176
    @property
177 177
    def help_text(self):
178 178
        return get_presentation(str(self)).get('help_text', '')
179
    
179

  
180 180
    @property
181 181
    def help_text_input_each(self):
182 182
        return get_presentation(str(self)).get('help_text_input_each', '')
......
1137 1137
        Return projects accessed by specified user.
1138 1138
        """
1139 1139
        return self.filter(Q(owner=user) | Q(applicant=user) | \
1140
                        Q(project__in=user.projectmembership_set.filter()))
1140
                        Q(project__projectmembership__person=user))
1141 1141

  
1142 1142
    def search_by_name(self, *search_strings):
1143 1143
        q = Q()

Also available in: Unified diff