zk_html/diary/2008-05-21-19:50:26.html

38 lines
1.9 KiB
HTML
Raw Permalink Normal View History

2020-04-25 06:35:06 +00:00
<!doctype html>
<html>
<head>
<title>Zk | I came.</title>
2023-05-11 05:30:08 +00:00
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Gentium+Plus&family=Lato&family=Ubuntu+Monodisplay=swap" />
2024-05-05 04:25:08 +00:00
<link rel="stylesheet" type="text/css" href="/style.css?2024-05-04" />
2020-04-25 06:35:06 +00:00
<meta name="viewport" content="width=device-width" />
<meta charset="utf-8" />
</head>
<body>
<main>
<header>
<h1>Zk | I came.</h1>
</header>
<article class="content">
<p><span class="tag">diary</span> <span class="tag">livejournal</span> <span class="tag">fossils</span></p>
<details text="Geekiness underneath"><summary>Geekiness underneath</summary>
</details>
2020-06-24 07:10:07 +00:00
<p>So I&rsquo;m building querysets in Django, and I think I&rsquo;m in love. Not only can you chain query sets together - that is, you can specify multiple things to search for, such as the title, duration and whatnot - but you can chain across relationships. So, I can search for a song in the Score table that contains &lsquo;butt&rsquo; in the title regardless of case, and specify that it&rsquo;s only by a certain composer, which is a completely separate table.</p>
2020-04-25 06:35:06 +00:00
<p>All through creative use of underscores.<br />
2020-06-24 07:10:07 +00:00
<code>scores = Score.objects.filter(title__icontains = &lsquo;butt&rsquo;).filter(client__full_name__icontains = &lsquo;matthew scott&rsquo;)</code></p>
2020-04-25 06:35:06 +00:00
<p>Just creamed my pants. :</p>
</article>
<footer>
<p>Page generated on 2008-05-21 19:50:26</p>
</footer>
</main>
2020-06-24 07:10:07 +00:00
<script type="text/javascript">
document.querySelectorAll('.tag').forEach(tag => {
let text = tag.innerText;
tag.innerText = '';
tag.innerHTML = `<a href="/tags.html#${text}">${text}</a>`;
});
</script>
2020-04-25 06:35:06 +00:00
</body>
</html>