Skip to content

Commit

Permalink
Rename on_trial -> publicly_readable following upstream rename
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jun 10, 2021
1 parent e69081b commit 180258c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
</div>
</div>

{{ form.on_trial }}

<div class="form-group">
<label class="col-md-1 col-lg-1" for="id_name">{% trans "Owner" %}</label>
<div class="col-sm-11 col-md-8 col-lg-5">
Expand Down
8 changes: 3 additions & 5 deletions tcms_github_marketplace/tests/test_views_createview.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019 Alexander Todorov <atodorov@MrSenko.com>
# Copyright (c) 2019-2021 Alexander Todorov <atodorov@MrSenko.com>

# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt
# pylint: disable=too-many-ancestors
Expand Down Expand Up @@ -101,7 +101,7 @@ def test_invalid_schema_name_shows_errors(self):
{
'name': 'Dash Is Not Allowed',
'schema_name': 'kiwi-tcms',
'on_trial': False,
'publicly_readable': False,
'paid_until': expected_paid_until,
})

Expand Down Expand Up @@ -390,9 +390,7 @@ def test_visit_after_purchase(self):
html=True)
self.assertContains(
response,
'<input type="hidden" name="on_trial"'
' value="False" id="id_on_trial">',
html=True)
'class="bootstrap-switch" name="publicly_readable" type="checkbox"')
self.assertContains(response, 'Owner')
self.assertContains(response, "<label>%s</label>" %
self.tester.username)
Expand Down
2 changes: 1 addition & 1 deletion tcms_github_marketplace/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['form'] = kwargs.get('form') or context['form'].__class__(
initial={
'on_trial': False,
'publicly_readable': False,
'paid_until': paid_until,
'organization': self.organization,
}
Expand Down

0 comments on commit 180258c

Please sign in to comment.