summaryrefslogtreecommitdiff
path: root/app/posts
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2022-12-02 14:16:08 -0600
committerluxagraf <sng@luxagraf.net>2022-12-02 14:16:08 -0600
commit656505098a80e653319236ac302fd6dd9f485b33 (patch)
tree03fe2f552496e2a2b459f5227dc11273d1b94211 /app/posts
parentbf2fa131cba6430ba93f584f4693c3444e0c455f (diff)
reset migrations to zero out some changes (deleting the geodata for
example)
Diffstat (limited to 'app/posts')
-rw-r--r--app/posts/migrations/0001_initial.py21
-rw-r--r--app/posts/migrations/0002_alter_post_id.py18
-rw-r--r--app/posts/migrations/0003_auto_20211030_1955.py38
-rw-r--r--app/posts/templates/posts/podcast_detail.html108
-rw-r--r--app/posts/templates/posts/podcast_list.html29
5 files changed, 10 insertions, 204 deletions
diff --git a/app/posts/migrations/0001_initial.py b/app/posts/migrations/0001_initial.py
index af70a9f..218eed5 100644
--- a/app/posts/migrations/0001_initial.py
+++ b/app/posts/migrations/0001_initial.py
@@ -1,4 +1,4 @@
-# Generated by Django 3.1.3 on 2020-11-30 22:44
+# Generated by Django 4.1.3 on 2022-12-02 20:08
from django.db import migrations, models
import django.db.models.deletion
@@ -10,17 +10,16 @@ class Migration(migrations.Migration):
dependencies = [
('books', '__first__'),
- ('normalize', '__first__'),
- ('taxonomy', '__first__'),
- ('sites', '0002_alter_domain_unique'),
('media', '__first__'),
+ ('taxonomy', '__first__'),
+ ('normalize', '__first__'),
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('short_title', models.CharField(blank=True, max_length=200, null=True)),
('subtitle', models.CharField(blank=True, max_length=200)),
@@ -37,18 +36,18 @@ class Migration(migrations.Migration):
('last_updated', models.DateTimeField(auto_now=True)),
('enable_comments', models.BooleanField(default=False)),
('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)),
- ('post_type', models.IntegerField(choices=[(0, 'field test'), (1, 'review'), (2, 'essay'), (3, 'src'), (4, 'jrnl'), (5, 'field note')], default=4)),
- ('template_name', models.IntegerField(choices=[(0, 'single'), (1, 'double'), (2, 'single-dark'), (3, 'double-dark'), (4, 'single-black'), (5, 'double-black')], default=0)),
+ ('post_type', models.IntegerField(choices=[(0, 'Podcast'), (1, 'jrnl'), (2, 'field note')], default=1)),
('has_video', models.BooleanField(blank=True, default=False)),
('has_code', models.BooleanField(blank=True, default=False)),
('disclaimer', models.BooleanField(blank=True, default=False)),
('originally_published_by', models.CharField(blank=True, max_length=400, null=True)),
('originally_published_by_url', models.CharField(blank=True, max_length=400, null=True)),
- ('books', models.ManyToManyField(blank=True, to='books.Book')),
+ ('issue', models.PositiveIntegerField(null=True)),
+ ('books', models.ManyToManyField(blank=True, to='books.book')),
+ ('featured_audio', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luxaudio')),
('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage')),
- ('related', models.ManyToManyField(blank=True, to='normalize.RelatedPost')),
- ('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sites.site')),
- ('topics', models.ManyToManyField(blank=True, to='taxonomy.Category')),
+ ('related', models.ManyToManyField(blank=True, to='normalize.relatedpost')),
+ ('topics', models.ManyToManyField(blank=True, to='taxonomy.category')),
],
options={
'ordering': ('-pub_date',),
diff --git a/app/posts/migrations/0002_alter_post_id.py b/app/posts/migrations/0002_alter_post_id.py
deleted file mode 100644
index a41f999..0000000
--- a/app/posts/migrations/0002_alter_post_id.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 3.2.8 on 2021-10-30 16:34
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('posts', '0001_initial'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='post',
- name='id',
- field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
- ),
- ]
diff --git a/app/posts/migrations/0003_auto_20211030_1955.py b/app/posts/migrations/0003_auto_20211030_1955.py
deleted file mode 100644
index b54cdd8..0000000
--- a/app/posts/migrations/0003_auto_20211030_1955.py
+++ /dev/null
@@ -1,38 +0,0 @@
-# Generated by Django 3.2.8 on 2021-10-30 19:55
-
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('media', '0002_auto_20211030_1634'),
- ('posts', '0002_alter_post_id'),
- ]
-
- operations = [
- migrations.RemoveField(
- model_name='post',
- name='site',
- ),
- migrations.RemoveField(
- model_name='post',
- name='template_name',
- ),
- migrations.AddField(
- model_name='post',
- name='featured_audio',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luxaudio'),
- ),
- migrations.AddField(
- model_name='post',
- name='issue',
- field=models.PositiveIntegerField(null=True),
- ),
- migrations.AlterField(
- model_name='post',
- name='post_type',
- field=models.IntegerField(choices=[(0, 'Podcast'), (1, 'jrnl'), (2, 'field note')], default=1),
- ),
- ]
diff --git a/app/posts/templates/posts/podcast_detail.html b/app/posts/templates/posts/podcast_detail.html
deleted file mode 100644
index 4fec3b1..0000000
--- a/app/posts/templates/posts/podcast_detail.html
+++ /dev/null
@@ -1,108 +0,0 @@
-{% extends 'base.html' %}
-{% load typogrify_tags %}
-{% load comments %}
-{% block pagetitle %}{{object.title|striptags}} - by Scott Gilbertson{% endblock %}
-{% block metadescription %}{% autoescape on %}{{object.meta_description|striptags|safe}}{% endautoescape %}{% endblock %}
-{%block extrahead%}
- <link rel="stylesheet" href="/media/src/solarized.css" type="text/css" media="screen"/>
-{%endblock%}
-
-{% block bodyid %}class="detail single"{% endblock %}
-{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %}
-{% block primary %}<main role="main">
- <article class="h-entry hentry entry-content content" itemscope itemType="http://schema.org/BlogPosting">
- <header id="header" class="post-header">
- <h1 class="p-name post-title" itemprop="headline">{{object.title|smartypants|safe}}</h1>
- <h2 class="post-subtitle">{% if object.subtitle %}{{object.subtitle|smartypants|safe}}{%else%}{{object.meta_description|safe|smartypants|widont}}{%endif%}</h2>
- <div class="post-dateline">
- {% if object.originally_published_by %}<h4 class="post-source">Originally Published By: <a href="{{object.originally_published_by_url}}" title="View {{object.title}} on {{object.originally_published_by}}">{{object.originally_published_by}}</a></h4>{%endif%}
- <time class="dt-published published dt-updated post-date" datetime="{{object.pub_date|date:'c'}}" itemprop="datePublished">{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time>
- <span class="hide" itemprop="author" itemscope itemtype="http://schema.org/Person">by <a class="p-author h-card" href="/about"><span itemprop="name">Scott Gilbertson</span></a></span>
- </div>
- </header>
-
-
- <div id="article" class="e-content entry-content post-article post-body-{% with object.template_name as t %}{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%endif%}{%endwith%}" itemprop="articleBody">
- {{object.body_html|safe|smartypants|widont}}
- </div>
- </article>
- <div class="entry-footer">
- <aside class="narrow donate">
- <h3>Support</h3>
- <p>Want to help support Lulu and Birdie? You can buy the book, or you can donate a few dollars.</p>
- <div class="donate-btn">
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
- <input type="hidden" name="cmd" value="_s-xclick">
- <input type="hidden" name="hosted_button_id" value="HYJFZQSBGJ8QQ">
- <input type="submit" name="submit" title="Donate to luxagraf via PayPal">
- </form>
- </div>
- <div class="donate-btn">
- <a class="liberapay-btn" href="https://liberapay.com/luxagraf/donate"><span>Donate</span></a>
- </div>
- </aside>
- {% comment %}<aside class="narrow join">
- <h3>Subscribe</h3>
- <p>You're reading <code>/src/</code>, a collection of infrequent postings about open source software, linux tools, and other nerdry. If you'd like to join us, drop your email in the form below: </p>
- <iframe target='_parent' style="border:none !important; background:white; width:100% !important;" title="embedded form for subscribing the the src newsletter" src="{% url 'lttr:subscribe' slug='range' %}"></iframe>
- <p>Unsubscribing is easy. It's <a href="/src/building-your-own-mailing-list-software">self-hosted</a> and <a href="/privacy" title="My privacy policy">respects your privacy</a>. If you don't want an email, there's also <a href="/src/feed.xml">an RSS feed</a>, and it's all archived <a href="/src/">here</a>.</p>
- </aside>{% endcomment%}
- </div>
- {% with object.get_next_published as next %}
- {% with object.get_previous_published as prev %}
- <nav class="page-navigation">
- <div>{% if prev%}
- <span class="label">Previous:</span>
- <a href="{{ prev.get_absolute_url }}" rel="prev" title=" {{prev.title}}">{{prev.title|safe}}</a>
- </div>{%endif%}{% if next%}
- <div>
- <span class="label">Next:</span>
- <a href="{{ next.get_absolute_url }}" rel="next" title=" {{next.title}}">{{next.title|safe}}</a>
- </div>{%endif%}
- </nav>{%endwith%}{%endwith%}
- {% if object.related.all %}<div class="article-afterward related">
- <div class="related-bottom">
- <h6 class="hedtinycaps">You might also enjoy</h6>
- <div class="archive-grid-quad">{% for object in related %}
- <div class="archive-grid-card archive-grid-card-simple">
- <a href="{{object.get_absolute_url}}" title="{{object.title}}">
- <div class="card-image-tiny">
- {% if object.featured_image %}
- {% include "lib/img_archive.html" with image=object.featured_image nolightbox=True %}
- {%endif%}
- </div>
- <h4 class="p-name card-hed" itemprop="headline">{% if object.title %}{{object.title|safe|smartypants|widont}}{% else %}{{object.common_name}}{%endif%}</h4>
- <p class="p-author author hide" itemprop="author"><span class="byline-author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Scott Gilbertson</span></span></p>
- <span class="card-smcaps">
- {% if object.location %}<span class="p-location h-adr adr card-location" itemprop="contentLocation" itemscope itemtype="http://schema.org/Place">
- {% if object.location.country_name == "United States" %}{{object.location.state_name}}{%else%}{{object.location.country_name}}{%endif%}
- </span>{%endif%}
- {% if object.location and object.model_name.model != 'page' %}&ndash;{%endif%}
- {% if object.model_name.model != 'page' %}<time class="dt-published published dt-updated" datetime="{{object.pub_date|date:'c'}}"><span>{{object.pub_date|date:" Y"}}</span></time>{%endif%}
- </span>
- </a>
- </div>
- {% endfor %}</div>
- </div>
- </div>{%endif%}
- </main>
- {% if object.enable_comments %}
-{% get_comment_count for object as comment_count %}
-{%if comment_count > 0 %}
-<div class="comment-wrapper">
-<p class="comments-header">{{comment_count}} Comment{{ comment_count|pluralize }}</p>
-{% render_comment_list for object %}
-{%endif%}
-<div class="comment-form-wrapper {%if comment_count > 0%}comment-form-border{%endif%}">
-{% render_comment_form for object %}
-</div>
-{% else %}
-<p class="comments--header" style="text-align: center">Sorry, comments have been disabled for this post.</p>
-{%endif%}
-</div>
-</main>
-{% endblock %}
-{% block js %}
-<script src="/media/js/leaflet-master/leaflet-mod.js"></script>
-<script src="/media/js/detail.min.js"></script>
-{%endblock%}
diff --git a/app/posts/templates/posts/podcast_list.html b/app/posts/templates/posts/podcast_list.html
deleted file mode 100644
index 8c73db4..0000000
--- a/app/posts/templates/posts/podcast_list.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{% extends 'base.html' %}
-{% load typogrify_tags %}
-{% load pagination_tags %}
-{% load comments %}
-
-{% block pagetitle %}The Lulu and Birdie Podcast{% endblock %}
-{% block metadescription %}The Adventures of Lulu, Birdie, and Henry in podcast form - by Scott Gilbertson.{% endblock %}
-{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %}
-{% block primary %}<main role="main" class="archive-wrapper">
- <div class="archive-intro">
- <h1 class="archive-hed">The Adventures of Lulu, Birdie, and Henry: The Podcast.</h1>
- <h2 class="list-subhed">Let's see what happens.</h2>
- </div>
-
- <h1 class="archive-sans">Episodes</h1>{% autopaginate object_list 24 %}
- <ul class="archive-list">{% for object in object_list %}
- <li class="h-entry hentry archive-list-card archive-list-card-sm" itemscope itemType="http://schema.org/Article">
- <span class="date dt-published card-smcaps">{{object.pub_date|date:"F Y"}}</span>
- <a href="{{object.get_absolute_url}}">
- <h2 class="card-hed">{{object.title|safe|smartypants|widont}}</h2>
- <p class="p-summary card-lede">{% if object.subtitle %}{{object.subtitle}}{%else%}{{object.meta_description|safe|smartypants|widont}}{%endif%}</p>
- </a>
- </li>
- {%endfor%}</ul>
-
-
-
- </main>
-{%endblock%}