noyainrain / listling

Web app to make and edit lists collaboratively.
https://listling.org/
GNU Affero General Public License v3.0
34 stars 8 forks source link

Add item template functionality to lists #76

Closed NiklasMM closed 4 years ago

NiklasMM commented 4 years ago

The "more settings" section of a list now has a new textarea where users can define an item tempalate. New item's descriptions are then pre-filled with this.

noyainrain commented 4 years ago

One more thing: Adding a new field requires a database update. If you are motivated, it would be awesome to implement it :slightly_smiling_face: . Have a look at Listling.do_update() and ListlingUpdateTest for inspiration ;) . Pretty much you have to 1. load all lists, 2. add the field like lst['item_template'] = None and 3. store all lists again.

noyainrain commented 4 years ago

Merged with https://github.com/noyainrain/listling/commit/4cc5c2f1235d9518a97df5e88da30778e521a5ea.