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