diff --git a/dev/Add-a-new-model-to-the-project.md b/dev/Add-a-new-model-to-the-project.md index 5602bb5..66fc7e0 100644 --- a/dev/Add-a-new-model-to-the-project.md +++ b/dev/Add-a-new-model-to-the-project.md @@ -5,8 +5,6 @@ We describe here the steps to add a new model NewModel inside the App applicatio * Register the NewModel inside App/admin.py * Create a NewModelForm and a DelNewModelForm inside App/forms.py (using FormRevMixin and ModelForm). The DelNewModelForm may be unnecessary if the foreign key command the deletion of the model (on_delete=models.CASCADE). * Add `'NewModel': App.models.NewModel,` to the MODEL_NAME variable of `/re2o/templatetags/acl.py`, if you want to test acls in templates -* Add `'newmodel': App.models.NewModel,` to the HISTORY_BIND variable of `/re2o/views.py -`, if you want to test history in templates * Create, apply and commit the django migration Then, you may define your views and template based on the other examples, and everything should be fine.