mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
fix formatting
This commit is contained in:
parent
c334229111
commit
7154191fd7
|
@ -583,7 +583,7 @@ The serializer method referred to by the `method_name` argument should accept a
|
|||
|
||||
class Meta:
|
||||
model = User
|
||||
fields = '__all__'
|
||||
fields = '__all__'
|
||||
|
||||
def get_days_since_joined(self, obj):
|
||||
return (now() - obj.date_joined).days
|
||||
|
|
Loading…
Reference in New Issue
Block a user