[tor-commits] [lego/master] Add `key` field to redirect model
    hiro at torproject.org 
    hiro at torproject.org
       
    Wed Mar 25 15:06:21 UTC 2020
    
    
  
commit 10ccab0bc9801ef9911477a2f60ac5bcb51022f3
Author: RotationMatrix <52428419+RotationMatrix at users.noreply.github.com>
Date:   Tue Mar 24 18:23:18 2020 -0400
    Add `key` field to redirect model
    
    This allows redirects to be sorted like normal questions on support.tpo.
---
 models/redirect.ini | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/models/redirect.ini b/models/redirect.ini
index 91ea2ce..8452af9 100644
--- a/models/redirect.ini
+++ b/models/redirect.ini
@@ -5,3 +5,7 @@ name = Redirect
 label = Redirect Target
 type = string
 description = Target is of type 'string' to allow relative paths. Converted to url in the template.
+
+[fields.key]
+label = Key
+type = sort_key
    
    
More information about the tor-commits
mailing list