suit_model command
Given a Model, create CRUD Django parts for it.
Properties: CRUD Parts
CBV
Template
Form
Serializer
Factory
URL routing
Admin registration
Workflow: Suit simple model
just suit-simple Client clients table
Workflow: Suit model containing ForeignKey
just suit-fk Author Book books table
unsuit_model command
Given a Model, remove all CRUD Django parts that were generated by suit_model.
Properties: Removed Parts
CBV (view file + views/init.py entry)
Template
Form class
Serializer class
Factory class
URL routing (app urls.py + config/urls.py)
Admin registration
Sidebar entry
Test file
Workflow: Un-suit simple model
just unsuit-simple Client clients
Workflow: Un-suit model containing ForeignKey
just unsuit-fk Author Book books
After model is suited, it uses default cotton component. But the right thing to do is to copy them and rename them into model name, e.g: table/table.html into table/table_book.html