Permalink
Browse files

Update README.md

typo in admin actions class declaration. fixed to use correct python class syntax.
  • Loading branch information...
techdragon committed Apr 9, 2013
1 parent 463f674 commit b81d74729805f3550f024f4bb03e3f311091725e
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -170,15 +170,15 @@ state transitions for the admin site. To support this in your model, update
your `ModelAdmin`:
```python
-class PurchaseAdmin(admin.ModelAdmin);
+class PurchaseAdmin(admin.ModelAdmin):
actions = Purchase.Machine.get_admin_actions()
```
If your model didn't inherit from `StateModel`, you can also specify the
`field_name`:
```python
-class PurchaseAdmin(admin.ModelAdmin);
+class PurchaseAdmin(admin.ModelAdmin):
actions = Purchase.Machine.get_admin_actions(field_name='purchase_state')
```

0 comments on commit b81d747

Please sign in to comment.