mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-28 04:21:07 +00:00
Fixes label for privacy field
This commit is contained in:
parent
a95e031140
commit
d807774c2d
2 changed files with 5 additions and 4 deletions
|
@ -46,10 +46,10 @@
|
|||
</label>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>
|
||||
<span class="label">{% trans "Privacy setting for imported reviews:" %}</span>
|
||||
{% include 'snippets/privacy_select.html' with no_label=True %}
|
||||
<label class="label" for="privacy_import">
|
||||
{% trans "Privacy setting for imported reviews:" %}
|
||||
</label>
|
||||
{% include 'snippets/privacy_select.html' with no_label=True privacy_uuid="import" %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -61,7 +61,8 @@ class ImportViews(TestCase):
|
|||
csv_file = pathlib.Path(__file__).parent.joinpath("../data/goodreads.csv")
|
||||
form.data[
|
||||
"csv_file"
|
||||
] = SimpleUploadedFile( # pylint: disable=consider-using-with
|
||||
] = SimpleUploadedFile(
|
||||
# pylint: disable=consider-using-with
|
||||
csv_file, open(csv_file, "rb").read(), content_type="text/csv"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue