diff options
| author | Bobby <[email protected]> | 2023-03-26 01:49:06 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-03-26 01:49:06 -0400 |
| commit | 27b9fb6a8de18f0aae748ec4572ed449ff445100 (patch) | |
| tree | de570d404999f1948e3e3d09d73cf763c2a441e2 | |
| parent | eb8eb580d170bee62d50be0f2400fe3e84c93f94 (diff) | |
| download | thatcomputerscientist-27b9fb6a8de18f0aae748ec4572ed449ff445100.tar.xz thatcomputerscientist-27b9fb6a8de18f0aae748ec4572ed449ff445100.zip | |
Fix category reset bug while editing metadata
| -rw-r--r-- | templates/blog_admin/new_post.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/blog_admin/new_post.html b/templates/blog_admin/new_post.html index 02c166f7..c2e911b6 100644 --- a/templates/blog_admin/new_post.html +++ b/templates/blog_admin/new_post.html @@ -73,7 +73,7 @@ <td> <select name="category"> {% for category in categories %} - <option value="{{ category.id }}" {% if post and post.category.id == category.id %} selected {% endif %} {% if return_object and return_object.category_value == category.id %} selected {% endif %}>{{ category.name }}</option> + <option value="{{ category.id }}" {% if post and post.category == category.id %} selected {% endif %} {% if return_object and return_object.category_value == category.id %} selected {% endif %}>{{ category.name }}</option> {% endfor %} </select> </td> |
