fabiocaccamo / django-treenode

:deciduous_tree: probably the best abstract model/admin for your tree based stuff.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement treenode in CreateView or ModelForm

diek opened this issue · comments

I am trying implement treenode without admin, and I was curious to know if you have an example of either a CreateView or a ModelForm. Or have any suggestions. I really like your efforts, amazing job, but I do not want regular users into the admin.

If you don’t want the admin just extend the model abstract class.

I do want the admin, it works perfect. I just also need a user form for non-admins, I am just having a hard time getting my head wrapped around making a form that has fields not in my model, the tn_parent would be the primary example of that. And I was curious to know if you have an example of either a CreateView or a ModelForm using treenode.

Got it, if you want I will upload a class based view example

Ah ok, sorry... I misunderstood your need yesterday.
Sure, feel free to send it, any contribution is appreciated.

will do