Archives June 2021

Django Field Rename Migrations and Test Cases

Is there some trick to running Django test cases when you've got a RenameField later in the migration-stack? I feel like this has to be some obvious thing I'm missing...

With a migration (say 0058_big_restructure.py) which does this:


migrations.RenameField(
model_name='rfsource',
old_name='source_name',
new_name='follow_source_name',
),

and a previous migration, (say 0006_long_ago_change_that_populates_some_other_field.py) which doesn't explicitly reference the source_name ...

Continue reading

Seems Time Warps have Infected the Blog

Just randomly clicked through a similar posts link and found an article that was (actually) published in 2015 claiming to be published in 2020. Clicking through more random links, it seems that every article that existed when I moved the blog to the new service on May 18th of last year got the timestamps modified ...

Continue reading

Daily archives

Previous month

May 2021

Next month

August 2021

Archives