Move model docstrings into the class level, out of init

This commit is contained in:
Mads Marquart
2019-02-24 04:48:29 +01:00
parent 98056e91c5
commit 929c2137bf
13 changed files with 57 additions and 31 deletions

View File

@@ -3,6 +3,8 @@ from __future__ import unicode_literals
class Plan(object):
"""Represents a plan"""
#: ID of the plan
uid = None
#: Plan time (unix time stamp), only precise down to the minute
@@ -23,7 +25,6 @@ class Plan(object):
invited = None
def __init__(self, time, title, location=None, location_id=None):
"""Represents a plan"""
self.time = int(time)
self.title = title
self.location = location or ""