Fix typo in redirect_to help text
authorMagnus Hagander <magnus@hagander.net>
Fri, 3 Jul 2020 18:24:33 +0000 (20:24 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 3 Jul 2020 18:24:33 +0000 (20:24 +0200)
Interestingly enough, this showed up because the migration was out of
sync. Normally this means the migration has not been updated, but in
this case it appears the migration is correct and the actual model is
incorrect. Yet both the model and the migraiton were introduced in
commit e2120f0a.

pgweb/docs/models.py

index a4558a6863cd6eb7c144e3691d813f4a11a0727e..89e54bd8c012cb48cca9eab25a62372bb2fe3371 100644 (file)
@@ -40,7 +40,7 @@ class DocPageRedirect(models.Model):
     completely removed from the PostgreSQL documentation
     """
     redirect_from = models.CharField(max_length=64, null=False, blank=False, unique=True, help_text='Page to redirect from, e.g. "old_page.html"')
-    redirect_to = models.CharField(max_length=64, null=False, blank=False, unique=True, help_text='Page to redirect from, e.g. "new_page.html"')
+    redirect_to = models.CharField(max_length=64, null=False, blank=False, unique=True, help_text='Page to redirect to, e.g. "new_page.html"')
 
     class Meta:
         verbose_name_plural = "Doc page redirects"