diff --git a/feeds/.atom.xml b/feeds/.atom.xml
index e1d4f89..8e27f96 100644
--- a/feeds/.atom.xml
+++ b/feeds/.atom.xml
@@ -1,5 +1,28 @@
-Alexis Métaireauhttps://blog.notmyidea.org/2024-02-20T00:00:00+01:00Notes hebdo #172024-02-20T00:00:00+01:002024-02-20T00:00:00+01:00tag:blog.notmyidea.org,2024-02-20:/notes-hebdo-17.html
+Alexis Métaireauhttps://blog.notmyidea.org/2024-02-22T00:00:00+01:00Changing the primary key of a model in Django2024-02-22T00:00:00+01:002024-02-22T00:00:00+01:00tag:blog.notmyidea.org,2024-02-22:/changing-the-primary-key-of-a-model-in-django.html<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items …</li></ul><p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items in the table, to generate an uuid for them</li>
+<li>Update the eventual references to the model so that it continues to work.</li>
+<li>Change the old primary key to a different type</li>
+<li>Mark the new primary key as such</li>
+</ul>
+<p>Create the new field in the model</p>
+<div class="highlight"><pre><span></span><code> <span class="n">uuid</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">UUIDField</span><span class="p">(</span><span class="n">unique</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="n">uuid</span><span class="o">.</span><span class="n">uuid4</span><span class="p">,</span> <span class="n">editable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
+</code></pre></div>
+
+<p>To generate the migrations I did <code>django-admin makemigrations</code>. The migration looks like this:</p>
+<div class="highlight"><pre><span></span><code>
+</code></pre></div>
+
+<p>Running the tests, I figured out that the URLs will need to be updated as well. I found <a href="https://gist.github.com/luzfcb/186ee28b368450035e056228615db999">a regexp for UUIDs</a></p>Notes hebdo #172024-02-20T00:00:00+01:002024-02-20T00:00:00+01:00tag:blog.notmyidea.org,2024-02-20:/notes-hebdo-17.html
<p>Un super début de semaine, une perte d’énergie puis du temps pour moi et de la lecture. Content de voir le chemin parcouru sur uMap depuis que j’ai commencé.</p>
<h2 id="ce-qui-sest-passe">Ce qui s’est passé</h2>
<dl>
diff --git a/feeds/.rss.xml b/feeds/.rss.xml
index eb45d81..7450ac5 100644
--- a/feeds/.rss.xml
+++ b/feeds/.rss.xml
@@ -1,5 +1,10 @@
-Alexis Métaireauhttps://blog.notmyidea.org/Tue, 20 Feb 2024 00:00:00 +0100Notes hebdo #17https://blog.notmyidea.org/notes-hebdo-17.html
+Alexis Métaireauhttps://blog.notmyidea.org/Thu, 22 Feb 2024 00:00:00 +0100Changing the primary key of a model in Djangohttps://blog.notmyidea.org/changing-the-primary-key-of-a-model-in-django.html<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items …</li></ul>Thu, 22 Feb 2024 00:00:00 +0100tag:blog.notmyidea.org,2024-02-22:/changing-the-primary-key-of-a-model-in-django.htmlcodedjangoormmigrationsNotes hebdo #17https://blog.notmyidea.org/notes-hebdo-17.html
<p>Un super début de semaine, une perte d’énergie puis du temps pour moi et de la lecture. Content de voir le chemin parcouru sur uMap depuis que j’ai commencé.</p>
<h2 id="ce-qui-sest-passe">Ce qui s’est passé</h2>
<dl>
diff --git a/feeds/all-en.atom.xml b/feeds/all-en.atom.xml
index 09f2370..8b525c1 100644
--- a/feeds/all-en.atom.xml
+++ b/feeds/all-en.atom.xml
@@ -1,5 +1,28 @@
-Alexis Métaireauhttps://blog.notmyidea.org/2024-02-20T00:00:00+01:00Notes hebdo #172024-02-20T00:00:00+01:002024-02-20T00:00:00+01:00tag:blog.notmyidea.org,2024-02-20:/notes-hebdo-17.html
+Alexis Métaireauhttps://blog.notmyidea.org/2024-02-22T00:00:00+01:00Changing the primary key of a model in Django2024-02-22T00:00:00+01:002024-02-22T00:00:00+01:00tag:blog.notmyidea.org,2024-02-22:/changing-the-primary-key-of-a-model-in-django.html<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items …</li></ul><p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items in the table, to generate an uuid for them</li>
+<li>Update the eventual references to the model so that it continues to work.</li>
+<li>Change the old primary key to a different type</li>
+<li>Mark the new primary key as such</li>
+</ul>
+<p>Create the new field in the model</p>
+<div class="highlight"><pre><span></span><code> <span class="n">uuid</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">UUIDField</span><span class="p">(</span><span class="n">unique</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="n">uuid</span><span class="o">.</span><span class="n">uuid4</span><span class="p">,</span> <span class="n">editable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
+</code></pre></div>
+
+<p>To generate the migrations I did <code>django-admin makemigrations</code>. The migration looks like this:</p>
+<div class="highlight"><pre><span></span><code>
+</code></pre></div>
+
+<p>Running the tests, I figured out that the URLs will need to be updated as well. I found <a href="https://gist.github.com/luzfcb/186ee28b368450035e056228615db999">a regexp for UUIDs</a></p>Notes hebdo #172024-02-20T00:00:00+01:002024-02-20T00:00:00+01:00tag:blog.notmyidea.org,2024-02-20:/notes-hebdo-17.html
<p>Un super début de semaine, une perte d’énergie puis du temps pour moi et de la lecture. Content de voir le chemin parcouru sur uMap depuis que j’ai commencé.</p>
<h2 id="ce-qui-sest-passe">Ce qui s’est passé</h2>
<dl>
diff --git a/feeds/all.atom.xml b/feeds/all.atom.xml
index c3fed7c..33a82c2 100644
--- a/feeds/all.atom.xml
+++ b/feeds/all.atom.xml
@@ -1,5 +1,28 @@
-Alexis Métaireauhttps://blog.notmyidea.org/2024-02-20T00:00:00+01:00Notes hebdo #172024-02-20T00:00:00+01:002024-02-20T00:00:00+01:00tag:blog.notmyidea.org,2024-02-20:/notes-hebdo-17.html
+Alexis Métaireauhttps://blog.notmyidea.org/2024-02-22T00:00:00+01:00Changing the primary key of a model in Django2024-02-22T00:00:00+01:002024-02-22T00:00:00+01:00tag:blog.notmyidea.org,2024-02-22:/changing-the-primary-key-of-a-model-in-django.html<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items …</li></ul><p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items in the table, to generate an uuid for them</li>
+<li>Update the eventual references to the model so that it continues to work.</li>
+<li>Change the old primary key to a different type</li>
+<li>Mark the new primary key as such</li>
+</ul>
+<p>Create the new field in the model</p>
+<div class="highlight"><pre><span></span><code> <span class="n">uuid</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">UUIDField</span><span class="p">(</span><span class="n">unique</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="n">uuid</span><span class="o">.</span><span class="n">uuid4</span><span class="p">,</span> <span class="n">editable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
+</code></pre></div>
+
+<p>To generate the migrations I did <code>django-admin makemigrations</code>. The migration looks like this:</p>
+<div class="highlight"><pre><span></span><code>
+</code></pre></div>
+
+<p>Running the tests, I figured out that the URLs will need to be updated as well. I found <a href="https://gist.github.com/luzfcb/186ee28b368450035e056228615db999">a regexp for UUIDs</a></p>Notes hebdo #172024-02-20T00:00:00+01:002024-02-20T00:00:00+01:00tag:blog.notmyidea.org,2024-02-20:/notes-hebdo-17.html
<p>Un super début de semaine, une perte d’énergie puis du temps pour moi et de la lecture. Content de voir le chemin parcouru sur uMap depuis que j’ai commencé.</p>
<h2 id="ce-qui-sest-passe">Ce qui s’est passé</h2>
<dl>
diff --git a/feeds/code.atom.xml b/feeds/code.atom.xml
index 48d0b83..198f832 100644
--- a/feeds/code.atom.xml
+++ b/feeds/code.atom.xml
@@ -1,5 +1,28 @@
-Alexis Métaireau - codehttps://blog.notmyidea.org/2024-02-12T00:00:00+01:00Adding collaboration on uMap, third update2024-02-12T00:00:00+01:002024-02-12T00:00:00+01:00tag:blog.notmyidea.org,2024-02-12:/adding-collaboration-on-umap-third-update.html<p>I’ve spent the last few weeks working on <a href="https://umap-project.org">uMap</a>, still
+Alexis Métaireau - codehttps://blog.notmyidea.org/2024-02-22T00:00:00+01:00Changing the primary key of a model in Django2024-02-22T00:00:00+01:002024-02-22T00:00:00+01:00tag:blog.notmyidea.org,2024-02-22:/changing-the-primary-key-of-a-model-in-django.html<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items …</li></ul><p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items in the table, to generate an uuid for them</li>
+<li>Update the eventual references to the model so that it continues to work.</li>
+<li>Change the old primary key to a different type</li>
+<li>Mark the new primary key as such</li>
+</ul>
+<p>Create the new field in the model</p>
+<div class="highlight"><pre><span></span><code> <span class="n">uuid</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">UUIDField</span><span class="p">(</span><span class="n">unique</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="n">uuid</span><span class="o">.</span><span class="n">uuid4</span><span class="p">,</span> <span class="n">editable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
+</code></pre></div>
+
+<p>To generate the migrations I did <code>django-admin makemigrations</code>. The migration looks like this:</p>
+<div class="highlight"><pre><span></span><code>
+</code></pre></div>
+
+<p>Running the tests, I figured out that the URLs will need to be updated as well. I found <a href="https://gist.github.com/luzfcb/186ee28b368450035e056228615db999">a regexp for UUIDs</a></p>Adding collaboration on uMap, third update2024-02-12T00:00:00+01:002024-02-12T00:00:00+01:00tag:blog.notmyidea.org,2024-02-12:/adding-collaboration-on-umap-third-update.html<p>I’ve spent the last few weeks working on <a href="https://umap-project.org">uMap</a>, still
with the goal of bringing real-time collaboration to the maps. I’m not there
yet, but I’ve made some progress that I will relate here.</p>
<h2 id="javascript-modules">JavaScript modules</h2>
diff --git a/feeds/tags/django.atom.xml b/feeds/tags/django.atom.xml
index 32b1eb9..2be2570 100644
--- a/feeds/tags/django.atom.xml
+++ b/feeds/tags/django.atom.xml
@@ -1,5 +1,28 @@
-Alexis Métaireau - djangohttps://blog.notmyidea.org/2023-08-16T00:00:00+02:00Profiling and speeding up Django and Pytest2023-08-16T00:00:00+02:002023-08-16T00:00:00+02:00tag:blog.notmyidea.org,2023-08-16:/profiling-and-speeding-up-django-and-pytest.html
+Alexis Métaireau - djangohttps://blog.notmyidea.org/2024-02-22T00:00:00+01:00Changing the primary key of a model in Django2024-02-22T00:00:00+01:002024-02-22T00:00:00+01:00tag:blog.notmyidea.org,2024-02-22:/changing-the-primary-key-of-a-model-in-django.html<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items …</li></ul><p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items in the table, to generate an uuid for them</li>
+<li>Update the eventual references to the model so that it continues to work.</li>
+<li>Change the old primary key to a different type</li>
+<li>Mark the new primary key as such</li>
+</ul>
+<p>Create the new field in the model</p>
+<div class="highlight"><pre><span></span><code> <span class="n">uuid</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">UUIDField</span><span class="p">(</span><span class="n">unique</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="n">uuid</span><span class="o">.</span><span class="n">uuid4</span><span class="p">,</span> <span class="n">editable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
+</code></pre></div>
+
+<p>To generate the migrations I did <code>django-admin makemigrations</code>. The migration looks like this:</p>
+<div class="highlight"><pre><span></span><code>
+</code></pre></div>
+
+<p>Running the tests, I figured out that the URLs will need to be updated as well. I found <a href="https://gist.github.com/luzfcb/186ee28b368450035e056228615db999">a regexp for UUIDs</a></p>Profiling and speeding up Django and Pytest2023-08-16T00:00:00+02:002023-08-16T00:00:00+02:00tag:blog.notmyidea.org,2023-08-16:/profiling-and-speeding-up-django-and-pytest.html
<p><a href="https://yaal.coop/">Éloi</a> made <a href="https://github.com/spiral-project/ihatemoney/issues/1214">a pull request on
IHateMoney</a> to
speedup the tests, with some great tooling for pytest that I wasn’t aware of:</p>
diff --git a/feeds/tags/migrations.atom.xml b/feeds/tags/migrations.atom.xml
new file mode 100644
index 0000000..3de459c
--- /dev/null
+++ b/feeds/tags/migrations.atom.xml
@@ -0,0 +1,25 @@
+
+Alexis Métaireau - migrationshttps://blog.notmyidea.org/2024-02-22T00:00:00+01:00Changing the primary key of a model in Django2024-02-22T00:00:00+01:002024-02-22T00:00:00+01:00tag:blog.notmyidea.org,2024-02-22:/changing-the-primary-key-of-a-model-in-django.html<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items …</li></ul><p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items in the table, to generate an uuid for them</li>
+<li>Update the eventual references to the model so that it continues to work.</li>
+<li>Change the old primary key to a different type</li>
+<li>Mark the new primary key as such</li>
+</ul>
+<p>Create the new field in the model</p>
+<div class="highlight"><pre><span></span><code> <span class="n">uuid</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">UUIDField</span><span class="p">(</span><span class="n">unique</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="n">uuid</span><span class="o">.</span><span class="n">uuid4</span><span class="p">,</span> <span class="n">editable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
+</code></pre></div>
+
+<p>To generate the migrations I did <code>django-admin makemigrations</code>. The migration looks like this:</p>
+<div class="highlight"><pre><span></span><code>
+</code></pre></div>
+
+<p>Running the tests, I figured out that the URLs will need to be updated as well. I found <a href="https://gist.github.com/luzfcb/186ee28b368450035e056228615db999">a regexp for UUIDs</a></p>
\ No newline at end of file
diff --git a/feeds/tags/orm.atom.xml b/feeds/tags/orm.atom.xml
new file mode 100644
index 0000000..9d9b002
--- /dev/null
+++ b/feeds/tags/orm.atom.xml
@@ -0,0 +1,25 @@
+
+Alexis Métaireau - ormhttps://blog.notmyidea.org/2024-02-22T00:00:00+01:00Changing the primary key of a model in Django2024-02-22T00:00:00+01:002024-02-22T00:00:00+01:00tag:blog.notmyidea.org,2024-02-22:/changing-the-primary-key-of-a-model-in-django.html<p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items …</li></ul><p>I had to change the primary key of a django model, and I wanted to create a migration for this.
+The previous model was using django ids.</p>
+<p>The migrations will need to do the following things:</p>
+<ul>
+<li>Create a new <code>uuid</code> field/column in the database</li>
+<li>Iterate over the existing items in the table, to generate an uuid for them</li>
+<li>Update the eventual references to the model so that it continues to work.</li>
+<li>Change the old primary key to a different type</li>
+<li>Mark the new primary key as such</li>
+</ul>
+<p>Create the new field in the model</p>
+<div class="highlight"><pre><span></span><code> <span class="n">uuid</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">UUIDField</span><span class="p">(</span><span class="n">unique</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="n">uuid</span><span class="o">.</span><span class="n">uuid4</span><span class="p">,</span> <span class="n">editable</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
+</code></pre></div>
+
+<p>To generate the migrations I did <code>django-admin makemigrations</code>. The migration looks like this:</p>
+<div class="highlight"><pre><span></span><code>
+</code></pre></div>
+
+<p>Running the tests, I figured out that the URLs will need to be updated as well. I found <a href="https://gist.github.com/luzfcb/186ee28b368450035e056228615db999">a regexp for UUIDs</a></p>
\ No newline at end of file
diff --git a/tag/django.html b/tag/django.html
index 292bf21..9632cdb 100644
--- a/tag/django.html
+++ b/tag/django.html
@@ -43,6 +43,17 @@ django - Alexis Métaireau
Une bonne grosse journée :-) J’ai avancé sur le changement vers des UUIDs pour
+les layers, je suis pas encore sur que ce soit la version finale mais ça avance
+dans la bonne direction. J’ai l’impression que je vais devoir aller voir d’un
+peu plus près les entrailles de Django et des migrations pour pouvoir récupérer
+le bon nom des contraintes qui sont générées par l’ORM.
+
J’en ai profité pour remettre au gout du jour la PR sur les IDs des features, et
+pour commencer à travailler sur le problème du Last-Modified qui ne peut pas
+avoir plus d’une requête à la même seconde, ce qui nous cause des soucis.
+
C’est chouette de faire quelques pull requests :-)
+
🗓️ Lundi 19 février 2024
Un bout de temps pour debugger des histoires d’agent ssh qui n’utilise plus la
passphrase par defaut avec gnome-keyring. Il se trouve que depuis la version
46, la fonctionalité ssh