Renamed the set_this_month() method to _set_this_month() to change it to private in Period.Parser in the Mia core application.
This commit is contained in:
parent
95e0173126
commit
c2b9cdbeed
@ -432,7 +432,7 @@ class Period:
|
|||||||
self.error = None
|
self.error = None
|
||||||
|
|
||||||
if spec is None:
|
if spec is None:
|
||||||
self.set_this_month()
|
self._set_this_month()
|
||||||
return
|
return
|
||||||
self.spec = spec
|
self.spec = spec
|
||||||
# A specific month
|
# A specific month
|
||||||
@ -565,7 +565,7 @@ class Period:
|
|||||||
# Wrong period format
|
# Wrong period format
|
||||||
raise ValueError
|
raise ValueError
|
||||||
|
|
||||||
def set_this_month(self):
|
def _set_this_month(self):
|
||||||
"""Sets the period to this month."""
|
"""Sets the period to this month."""
|
||||||
today = timezone.localdate()
|
today = timezone.localdate()
|
||||||
self.spec = dateformat.format(today, "Y-m")
|
self.spec = dateformat.format(today, "Y-m")
|
||||||
|
Loading…
Reference in New Issue
Block a user