-
-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method to add fields to Topic or Comment #300
Comments
#96 (comment) seems to be closest existing discussion that I can find. |
So spirit did not allow adding additional fields to the |
Create an app, add a model with a OneToOne field to Topic, and the extra fields you need, fork Spirit and add the form to the relevant views and templates. Extending the Spirit model in-place (like just adding fields willy nilly) is not a good idea. It'll create conflicts with future migrations. What django-oscar and django-machina provide is not a plugin system; they let you extend/override some model or form, but their way is not composable. How do multiple apps/plugin extend the same model?. |
Say there is a "product" in my website that a
Compared to the |
Step 2 is to create a form for your product model. Step 3 is to fork Spirit and add the form to whatever view and templates are needed to display the form. You'll need to maintain (i.e: solve git conflicts) the affected views and templates.
Yes, but it was never integrated into Spirit, so no... |
What is the recommended method to add extra fields like
tags
fromdjango-taggit
to Spirit models such asTopic
orComment
?The text was updated successfully, but these errors were encountered: