Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README.md

typo in admin actions class declaration. fixed to use correct python class syntax.
  • Loading branch information...
commit b81d74729805f3550f024f4bb03e3f311091725e 1 parent 463f674
@techdragon techdragon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -170,7 +170,7 @@ 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()
```
@@ -178,7 +178,7 @@ 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')
```
Please sign in to comment.
Something went wrong with that request. Please try again.