<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>k_mawa</author_name>
  <author_url>https://blog.hatena.ne.jp/k_mawa/</author_url>
  <blog_title>MawaLog</blog_title>
  <blog_url>https://k-mawa.hateblo.jp/</blog_url>
  <categories>
    <anon>DjangoRESTFramework</anon>
    <anon>Django</anon>
    <anon>Django2</anon>
    <anon>Python</anon>
    <anon>WebAPI</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>Djangoアーティスト: O.S.T.出版社/メーカー: Universal発売日: 2017/04/07メディア: CDこの商品を含むブログを見る 症状 #api.serializer class HogeSerializer(ModelSerializer): class Meta: model = Hoge fields = [ 'id', 'title', ] def validate(self, data): #titleがかぶったらエラーを出すバリデーション関数をつくる try: Hoge.objects.get(title=data.get('title')) #titleでオ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-mawa.hateblo.jp%2Fentry%2F2018%2F03%2F10%2F011304&quot; title=&quot;DRF で try: と raise Validationerror を組み合わせて失敗した話 - MawaLog&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>https://images-fe.ssl-images-amazon.com/images/I/51KZ9pmaDOL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-03-10 01:13:04</published>
  <title>DRF で try: と raise Validationerror を組み合わせて失敗した話</title>
  <type>rich</type>
  <url>https://k-mawa.hateblo.jp/entry/2018/03/10/011304</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
