-
I have this error in my browser: and my component is like this: from tetra import Component, public, Library
from todo.models import Tag
default = Library()
@default.register
class TagsList(Component):
name = public("")
color = public("indigo")
def load(self):
self.tags = Tag.objects.all()
@public
def add_todo(self, name, color):
tag = Tag(
name=name,
color=color,
)
tag.save()
self.name = ""
template_name = "todo/components/multi-select-or-create.html" |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
At the first glance, as there are "no" components available (empty list) it seems to me that your "components" module is not loaded. could it be that there is a syntax error anywhere in your |
Beta Was this translation helpful? Give feedback.
-
@m5no0p is this still a problem? Or can I close this issue? |
Beta Was this translation helpful? Give feedback.
-
it was my bad...i didn't install sourcetypes package. |
Beta Was this translation helpful? Give feedback.
-
Glad that it worked. |
Beta Was this translation helpful? Give feedback.
it was my bad...i didn't install sourcetypes package.