firstboot: Add doc strings for custom tags

This commit is contained in:
Sunil Mohan Adapa 2015-12-30 01:06:24 +05:30
parent 75896d4d1f
commit 0464ac83d8
No known key found for this signature in database
GPG Key ID: 36C361440C9BC971

View File

@ -15,6 +15,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
"""
Template tags for first boot module.
"""
from django import template
from plinth import kvstore
@ -24,5 +28,6 @@ register = template.Library()
@register.simple_tag
def firstboot_is_finished():
"""Return whether firstboot process is completed."""
state = kvstore.get_default('firstboot_state', 0)
return state >= 10