Commit b99e36dd authored by Jean-Baptiste's avatar Jean-Baptiste

fix #148

parent 813f1b5e
......@@ -19,9 +19,9 @@ User._meta.serializer_fields = ['@id', 'username', 'first_name', 'last_name', 'e
User._meta.rdf_context = {"get_full_name": "rdfs:label"}
User._meta.depth = 1
User._meta.many_depth = 0
User._meta.get_field('username').verbose_name = "Email"
User._meta.get_field('username').verbose_name = "Email"
def active_actions(self):
return json.dumps(list(self.actions.filter(date__gte=date.today())))
return self.actions.filter(date__gte=date.today())
User.active_actions=active_actions
class UserProfile(Model):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment