<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>piro_suke</author_name>
  <author_url>https://blog.hatena.ne.jp/piro_suke/</author_url>
  <blog_title>ほんじゃーねっと</blog_title>
  <blog_url>https://blog.honjala.net/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>from django.db import models class UserAlertManager(models.Manager): def additional_method(self): &quot;追加するメソッド&quot; ... class UserAlert(models.Model): user = models.ForeignKey(User) ... objects = UserAlertManager() これで、下記のように追加したメソッドが使える UserAlert.objects.additional_method() モデル処理用のヘルパーメソッドを追加してモデルクラスで色々でき…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.honjala.net%2Fentry%2Fblog%2F2009%2F11%2F11%2F200911111257922957%2F&quot; title=&quot;モデルクラスのobjectsにメソッドを追加する - ほんじゃーねっと&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>2009-11-11 16:02:37</published>
  <title>モデルクラスのobjectsにメソッドを追加する</title>
  <type>rich</type>
  <url>https://blog.honjala.net/entry/blog/2009/11/11/200911111257922957/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
