summaryrefslogtreecommitdiff
path: root/hamnadmin
AgeCommit message (Collapse)Author
2025-06-16Upgrade plugin to community auth v3HEADmasterMagnus Hagander
2024-04-10Updates for django 4.2Magnus Hagander
2024-04-10Backfill migration with changed orderingMagnus Hagander
This was missed in dbdbe6a when ordering of moderator notes was changed on the model.
2024-04-02Use an appropriate top title when adding a new feed.Dave Page
2024-04-02Use an appropriate title when adding a new feed.Dave Page
2024-04-02Don't show moderation notes when adding a new field.Dave Page
2024-04-01Add explicit redirect after adding a moderator noteMagnus Hagander
This way we can avoid potential duplicate-postings on a refresh, and it makes tracking the code a bit more clear.
2024-04-01Don't redirect to complete page on invalid formMagnus Hagander
Indentation missed in a12e1b97 made it try that. Instead, it should fall through and render the form, which will then show the proper error message.
2024-03-19Fix ordering of notes so they are more naturally readable.Dave Page
2024-03-19Fix ordering of notes so they are more naturally readable.Dave Page
2024-03-19Add the ability to include moderator notes on feeds.Dave Page
2023-11-23Remove twitteruser field from blog registrationMagnus Hagander
We can't verify it anymore, and this blocks anybody from saving a blog that has twitteruser on it. Twitter does not provide any way to verify the existance of a user anymore, other than paying $$$$. So we'll just cut the field for now, to make things work again. This does not remove *existing* registrations of twitter users, but it does make it impossible to register new ones. Issues reported by several different people.
2023-07-17Fix over-enthusiastic search/replace in previous commitMagnus Hagander
2023-07-14Fix templates for upgrade to bootstrap 4Magnus Hagander
Commit c9f68d5f upgraded the site to bootstrap 4, amongst other things, but completely missed that "labels" are now called "badges", and thus need new CSS classes.
2023-06-07Sync up to latest version of pgweb auth pluginMagnus Hagander
2023-05-05Add to log message the old blogurlStephen Frost
For debugging, it's helpful to know what the old value was of a given blogurl, to make sure we are updating things correctly and only what should be getting updated is getting updated.
2023-05-05Always set new_blogurl if blogurl different from feed.linkStephen Frost
Previously, we set blogurl if the prior blogurl was set to empty-string ('') but that change wasn't picked up as part of what needed to be updated, so instead always use new_blogurl if we need to set the blogurl as this ensures that we'll realize there was a change and will update the database accordingly. At the same time, also send an email in every case that the blogurl is changed, even when it's being changed from being empty. This is perhaps a bit noisy but it's been broken for so long that it's worth it to make sure people are aware that it's now working and folks don't register new blogs over and over again anyway. Lastly, move the block that does the update and sets the new blogurl value up higher so that if a new blogurl is set then the emails that are generated from that run will use that new blogurl instead of the old one (which could be confusing).
2023-01-11Name the exception, so we will actually have it to print.Stephen Frost
2023-01-11Log if there is an exception when setting blogurlStephen Frost
2023-01-05Add a border for clarity, per JonathanDave Page
2023-01-05Update Planet to the modern postgresql.org website styling.Dave Page
2022-10-05Fix silly copy/paste errorMagnus Hagander
2022-10-05Band-aid fix for newer python in imported moduleMagnus Hagander
2022-10-05Add xkey and other headers for redirect, use for purgeMagnus Hagander
This way we'll purge the redirect whenever a post is hidden, so we'll stop redirecting to it.
2022-09-06Spelling correctionStephen Frost
retreiving -> retrieving
2021-11-07Add DEFAULT_AUTO_FIELD for Django 3.2Magnus Hagander
2021-11-06Spelling fixMagnus Hagander
Spotted by Jonathan Katz
2021-08-17Force timestamp check into join conditionMagnus Hagander
Unfortunately, 6c44b60 very clearly de-optimized the query when running on a system with millions of log-rows. Oops. So force the django ORM to put the filter on the join clause thereby making it possible to use an index, which should make it actually optimized.
2021-08-17Don't show list of personal teams in admin viewMagnus Hagander
In admin view we are looking at others people's blogs, so it is confusing to have the bottom part of the page reflect the administrators personal setup.
2021-08-17Optimize some db queriesMagnus Hagander
Basically make django generate the joins/prefetches/subqueries instead of firing of hundreds of queries on the db. Probably doesn't actually matter that much given how seldom these queries are run, but still.
2021-08-17Show blog username/email in listingMagnus Hagander
For the regular user view, just show which account and email is used for info. For the administration view, show the username and email for each individual blog, to help with tracking down misbehaving blogs. And finally, in the moderation view, also include the email (it already had the account name) to make it easier to contact an author.
2021-01-17Set proper mail headers to indicate auto-generated mailsMagnus Hagander
2020-08-30Fix title for field lastgetMagnus Hagander
In particular it was terribly labeled in the moderation interface. Make it better and more consistent between the two interfaces.
2020-08-11Import latest version of the community auth pluginMagnus Hagander
This includes receiving updates using the new push api.
2020-07-11Make use of the lastsuccess parameter to improve some messagesMagnus Hagander
In particular, it is interesting to know when a blog that has failed multiple times has actually succeeded more recent than the most recent failure. So show this both on the dashbaord and on the individual blog details, and include it in the email that's sent when a blog generates large amounts of errors.
2020-07-11Track timestamp for last successful fetch of a blogMagnus Hagander
2020-07-11Only update actually changed fields in most placesMagnus Hagander
2020-07-11Misc fixes to make pep8 happyMagnus Hagander
Mostly whitespace fixes, but also some bare-exception fixes. Add a setup.cfg that specifies which pep8 settings we normally run with.
2020-07-11Clean up importsMagnus Hagander
Remove unused imports, and stop using "import *"
2020-07-11Fix incorrect classnameMagnus Hagander
2020-07-11Convert tabs to spacesMagnus Hagander
Finally time to clean this repo up
2020-05-08Don't list archived blogs as members of teamsMagnus Hagander
Spotted by Guillaume Lelarge
2020-04-01User.is_authenticated is no longer a callable in Django 2.2Magnus Hagander
2020-03-31Update to be compatible with django 2.2Magnus Hagander
2020-03-25Fix spelling errorMagnus Hagander
2020-02-26Sync up community auth plugin to latest-and-greatestMagnus Hagander
2020-01-09Apply feedparser fix for python 3.7Magnus Hagander
2020-01-09Use vendored version of feedparserMagnus Hagander
2020-01-09Vendor feedparser 5.2.1Magnus Hagander
We're going to need to make small modifications, and the new 6.x release isn't ready and doesn't appear to be close.
2019-12-10Fix spelling errorMagnus Hagander