mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 09:29:25 +02:00
Blacked the code
This commit is contained in:
parent
b6fc0051fa
commit
62ca3bd736
279 changed files with 8861 additions and 9527 deletions
|
@ -11,20 +11,17 @@ class ImportRequestSerializer(serializers.ModelSerializer):
|
|||
class Meta:
|
||||
model = models.ImportRequest
|
||||
fields = (
|
||||
'id',
|
||||
'status',
|
||||
'albums',
|
||||
'artist_name',
|
||||
'user',
|
||||
'creation_date',
|
||||
'imported_date',
|
||||
'comment')
|
||||
read_only_fields = (
|
||||
'creation_date',
|
||||
'imported_date',
|
||||
'user',
|
||||
'status')
|
||||
"id",
|
||||
"status",
|
||||
"albums",
|
||||
"artist_name",
|
||||
"user",
|
||||
"creation_date",
|
||||
"imported_date",
|
||||
"comment",
|
||||
)
|
||||
read_only_fields = ("creation_date", "imported_date", "user", "status")
|
||||
|
||||
def create(self, validated_data):
|
||||
validated_data['user'] = self.context['user']
|
||||
validated_data["user"] = self.context["user"]
|
||||
return super().create(validated_data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue