@@ -117,7 +117,7 @@ Programmatically Enabling Object Admin Actions
117
117
``````````````````````````````````````````````
118
118
119
119
You can programatically enable and disable registered object actions by defining
120
- your own custom ``get_object_actions() `` method. In this example, certain actions
120
+ your own custom ``get_object_actions() `` method. In this example, certain actions
121
121
only apply to certain object states (i.e. You should not be able to close an company
122
122
account if the account is already closed)::
123
123
@@ -142,7 +142,7 @@ account if the account is already closed)::
142
142
objectactions.extend(['reactivate_company_account_action', ])
143
143
144
144
return objectactions
145
-
145
+
146
146
147
147
148
148
Alternate Installation
@@ -181,16 +181,13 @@ Getting started *(with virtualenvwrapper)*::
181
181
# set up your virtualenv
182
182
mkvirtualenv django-object-actions
183
183
pip install -r requirements.txt
184
- export DJANGO_SETTINGS_MODULE=example_project.settings
184
+ # hack your path so that we can reference packages starting from the root
185
185
add2virtualenv .
186
186
make test # run test suite
187
- tox # run full test suite, requires more setup
188
- make resetdb # reset the example db
189
- python example_project/manage.py runserver # run debug server
190
-
191
- The fixtures will create a user, admin:admin, you can use to log in immediately.
187
+ make quickstart # runs 'make resetdb' and some extra steps
192
188
193
- Various helpers are available as make commands.
189
+ Various helpers are available as make commands. View ``Makefile `` to see what
190
+ other utilities you can do.
194
191
195
192
196
193
Similar Packages
0 commit comments