Module mycalendar.models
Model module.
Copyright ycookjp
Classes
class MyCalendar (*args, **kwargs)-
カレンダークラス
Attributes
id:int- ID
user:str- ユーザー名
year:int- カレンダーの年
month:int- カレンダーの月
day:int- カレンダーの日
note:str- コメント
Ancestors
- django.db.models.base.Model
- django.db.models.utils.AltersData
Class variables
var DoesNotExist-
The requested object does not exist
var MultipleObjectsReturned-
The query returned multiple objects when only one was expected.
var NotUpdated-
The updated object no longer exists.
var objects-
The type of the None singleton.
var unique_together-
The type of the None singleton.
Static methods
def deserialize(json_data: dict)-
ディクショナリ形式のJSONデータをMyCalendarモデルのインスタンスに変換する。
Args
json_data:dict- ディクショナリ形式のJSONデータを指定する。
Returns
MyCalendar- MyCalendarのインスタンスを返却する。
Instance variables
var day-
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
var id-
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
var month-
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
var note-
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
var user-
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
var year-
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.