mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 01:27:03 +02:00
Change years to int
Temp changes because I cant pass in months specifically
This commit is contained in:
parent
7b878c2195
commit
8700a05fbf
2 changed files with 43 additions and 43 deletions
|
@ -1174,7 +1174,7 @@ class DomainAdmin(ListHeaderAdmin):
|
|||
logger.info(f"do_extend_expiration_date -> month length: {month_length}")
|
||||
# TODO why cant I specify months
|
||||
#obj.renew_domain(length=month_length, unit=epp.Unit.MONTH)
|
||||
years = month_length/12
|
||||
years = int(month_length/12)
|
||||
if years >= 1:
|
||||
obj.renew_domain(length=month_length/12)
|
||||
else:
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<input id="manageDomainSubmitButton" type="submit" value="Manage domain" name="_edit_domain">
|
||||
<input type="submit" value="Get registry status" name="_get_status">
|
||||
{{ modal_button }}
|
||||
{% if original.state != original.State.DELETED %}
|
||||
<a
|
||||
href="#toggle-extend-expiration-alert"
|
||||
aria-controls="toggle-extend-expiration-alert"
|
||||
|
@ -13,7 +14,6 @@
|
|||
>
|
||||
Extend expiration date
|
||||
</a>
|
||||
{% if original.state != original.State.DELETED %}
|
||||
<div
|
||||
class="usa-modal"
|
||||
id="toggle-extend-expiration-alert"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue