4 ms·
Looks great. Just a heads up that there a bug in the example at https://www.tetraframework.com/docs/introduction https://www.tetraframework.com/docs/introductio
by dagw 4y ago
Looks great. Just a heads up that there a bug in the example at https://www.tetraframework.com/docs/introduction https://www.tetraframework.com/docs/introduction
As it stands you'll get
TypeError: ToDoItem.save() takes 3 positional arguments but 4 were given
when trying to add a ToDo.
- samwillis 4y agoThanks, there was an error in the docs, public methods that are watching an attribute should be `def name(self, value, old_value, attr)`. "attr" is the name of the attribute that has changed. Fixed!
- dagw 4y agoWhile I'm suggesting changes, you should probably make it clear that you have to link in bootstrap and font-awesome explicitly in your template to make all the styling work. I initially assumed that it was somehow included in tetra and it took me a second to work out why all the styling was missing.
- samwillis 4y agoOh that’s just for the docs and demo site, no need for bootstrap or font-awesome at all. You can use whatever you want.
- dagw 4y agoYea, I got that. But if someone is just following along the demo in the docs they won't get the results they'll be expecting unless they add bootstrap and font-awesome. It's probably worth mentioning that they should add the relevant imports to the template index.html for the demo.