mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 15:29:22 +02:00
Blacked the code
This commit is contained in:
parent
b6fc0051fa
commit
62ca3bd736
279 changed files with 8861 additions and 9527 deletions
|
@ -2,17 +2,13 @@ from django.db import models
|
|||
|
||||
from django.utils import timezone
|
||||
|
||||
NATURE_CHOICES = [
|
||||
('artist', 'artist'),
|
||||
('album', 'album'),
|
||||
('track', 'track'),
|
||||
]
|
||||
NATURE_CHOICES = [("artist", "artist"), ("album", "album"), ("track", "track")]
|
||||
|
||||
STATUS_CHOICES = [
|
||||
('pending', 'pending'),
|
||||
('accepted', 'accepted'),
|
||||
('imported', 'imported'),
|
||||
('closed', 'closed'),
|
||||
("pending", "pending"),
|
||||
("accepted", "accepted"),
|
||||
("imported", "imported"),
|
||||
("closed", "closed"),
|
||||
]
|
||||
|
||||
|
||||
|
@ -20,11 +16,9 @@ class ImportRequest(models.Model):
|
|||
creation_date = models.DateTimeField(default=timezone.now)
|
||||
imported_date = models.DateTimeField(null=True, blank=True)
|
||||
user = models.ForeignKey(
|
||||
'users.User',
|
||||
related_name='import_requests',
|
||||
on_delete=models.CASCADE)
|
||||
"users.User", related_name="import_requests", on_delete=models.CASCADE
|
||||
)
|
||||
artist_name = models.CharField(max_length=250)
|
||||
albums = models.CharField(max_length=3000, null=True, blank=True)
|
||||
status = models.CharField(
|
||||
choices=STATUS_CHOICES, max_length=50, default='pending')
|
||||
status = models.CharField(choices=STATUS_CHOICES, max_length=50, default="pending")
|
||||
comment = models.TextField(null=True, blank=True, max_length=3000)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue