Beispiel #1
0
 def abuse_reports_for_this_user(self, obj):
     return related_content_link(obj, AbuseReport, 'user')
Beispiel #2
0
 def ratings_created(self, obj):
     return related_content_link(obj, Rating, 'user')
Beispiel #3
0
 def activity(self, obj):
     return related_content_link(obj, ActivityLog, 'user')
Beispiel #4
0
 def collections_created(self, obj):
     return related_content_link(obj, Collection, 'author')
Beispiel #5
0
 def addons_created(self, obj):
     return related_content_link(obj, Addon, 'authors',
                                 related_manager='unfiltered')
Beispiel #6
0
 def activity(self, obj):
     return related_content_link(obj, ActivityLog, 'user')
Beispiel #7
0
 def abuse_reports_for_this_user(self, obj):
     return related_content_link(obj, AbuseReport, 'user')
Beispiel #8
0
 def addons_created(self, obj):
     return related_content_link(obj,
                                 Addon,
                                 'authors',
                                 related_manager='unfiltered')
Beispiel #9
0
 def ratings_created(self, obj):
     return related_content_link(obj, Rating, 'user')
Beispiel #10
0
 def collections_created(self, obj):
     return related_content_link(obj, Collection, 'author')
Beispiel #11
0
 def total_ratings_link(self, obj):
     return related_content_link(obj,
                                 Rating,
                                 'addon',
                                 related_manager='without_replies',
                                 count=obj.total_ratings)
Beispiel #12
0
 def restriction_history_for_this_user(self, obj):
     return related_content_link(obj, UserRestrictionHistory, 'user')
Beispiel #13
0
 def ratings_authorship(self, obj):
     return related_content_link(obj, Rating, 'user')
Beispiel #14
0
 def total_ratings_link(self, obj):
     return related_content_link(
         obj, Rating, 'addon', related_manager='without_replies',
         count=obj.total_ratings)