<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuheiomori0718</author_name>
  <author_url>https://blog.hatena.ne.jp/yuheiomori0718/</author_url>
  <blog_title>メモ置き場</blog_title>
  <blog_url>https://y0m0r.hateblo.jp/</blog_url>
  <categories>
    <anon>django</anon>
  </categories>
  <description>昨日の続きでdjango-model-utilsを試してみる。 今日はTimeFramedModel。開始時刻と終了時刻をフィールドにもつようなモデルの場合に使える。 from model_utils.models import TimeFramedModel class Event(TimeFramedModel): name = models.CharField(max_length=100) TimeFramedModelを継承したモデルはstartとendという名前のフィールドを持ちます。 from datetime import datetime, timedelta import …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20130508%2F1368025123&quot; title=&quot;django-model-utilsをいろいろ試してみる その2 TimeFramedModel - メモ置き場&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-05-08 23:58:43</published>
  <title>django-model-utilsをいろいろ試してみる その2 TimeFramedModel</title>
  <type>rich</type>
  <url>https://y0m0r.hateblo.jp/entry/20130508/1368025123</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
