diff --git a/frontend/src/components/ArtistInput/ArtistInput.component.js b/frontend/src/components/ArtistInput/ArtistInput.component.js
index 63a6fbf..0b65f5c 100644
--- a/frontend/src/components/ArtistInput/ArtistInput.component.js
+++ b/frontend/src/components/ArtistInput/ArtistInput.component.js
@@ -55,7 +55,7 @@ const ArtistInput = ({ handleSetArtist }) => {
}}
suggestions={artistList}
inputProps={{
- placeholder: t("artistinput.artist"),
+ placeholder: t("settings.artist"),
value: artistName,
onChange: (e, { newValue }) => {
setArtistName(newValue || "")
diff --git a/frontend/src/components/UsernameInput/UsernameInput.component.js b/frontend/src/components/UsernameInput/UsernameInput.component.js
index d23b503..573145e 100644
--- a/frontend/src/components/UsernameInput/UsernameInput.component.js
+++ b/frontend/src/components/UsernameInput/UsernameInput.component.js
@@ -14,7 +14,7 @@ const UsernameInput = ({ discogsUsername, handleUpdateUsername }) => {
setUser(e.target.value)}
/>
diff --git a/frontend/src/translations/en.json b/frontend/src/translations/en.json
index b335aa2..86b84cd 100644
--- a/frontend/src/translations/en.json
+++ b/frontend/src/translations/en.json
@@ -6,9 +6,6 @@
"startuser2": " in the user name field to fetch a record collection (the first time a collection is fetched it might take several minutes).",
"startartist": "You can also look at an artist and the records it has released. Enter the artists name it the field for artist."
},
- "artistinput": {
- "artist": "Artist"
- },
"common": {
"ok": "OK"
},
@@ -45,7 +42,9 @@
"en": "English"
},
"layout": "Layout",
- "columns": "Columns"
+ "columns": "Columns",
+ "username": "Discogs username",
+ "artist": "Artist"
},
"progress": {
"load": "Loading records",
diff --git a/frontend/src/translations/sv.json b/frontend/src/translations/sv.json
index 16402e2..bcab24f 100644
--- a/frontend/src/translations/sv.json
+++ b/frontend/src/translations/sv.json
@@ -6,9 +6,6 @@
"startuser2": " i fältet för användarnamn för att hämta en skivsamling (första gången en skivsamling hämtas kan det ta några minuter).",
"startartist": "Du kan också titta på en artist och vilka skivor den har släppt. Fyll då in artistens namn i fältet för artist (artisten måste finnas i databasen för att den ska komma upp som alternativ)."
},
- "artistinput": {
- "artist": "Artist"
- },
"common": {
"ok": "OK"
},
@@ -45,7 +42,9 @@
"en": "Engelska"
},
"layout": "Layout",
- "columns": "Kolumner"
+ "columns": "Kolumner",
+ "username": "Discogs användarnamn",
+ "artist": "Artist"
},
"progress": {
"load": "Laddar skivor",
diff --git a/records/models.py b/records/models.py
index 7d86f33..f6dfa5c 100644
--- a/records/models.py
+++ b/records/models.py
@@ -108,7 +108,7 @@ def to_dict(self):
"master": self.master,
"cover": self.cover_file.url if self.cover_file else self.cover,
"year": self.year,
- "thumbnail": self.thumbnail_file.url if self.thumbnail_file else self.thumbnail,
+ "thumbnail": self.thumbnail_file.url if self.thumbnail_file else self.thumbnail, # type: ignore
"price": str(self.price) if self.price else None,
"genres": [genre.name for genre in self.genres.all()],
"updated": str(self.updated) if self.updated else None,