Commit e168198291526075423050f1f681176dad1e69d0
Committed by
Claude Paroz
1 parent
ea4c834c
Fixed #95 -- Compare values instead of identities
Showing
2 changed files
with
6 additions
and
2 deletions
| ... | ... | @@ -6,7 +6,11 @@ History |
| 6 | 6 | Pending |
| 7 | 7 | ------- |
| 8 | 8 | |
| 9 | -* New release notes here | |
| 9 | +1.7.3 (unreleased) | |
| 10 | +------------------ | |
| 11 | + | |
| 12 | +* Fixed a regression which prevented the ``Comment`` model | |
| 13 | + from registering with the admin. | |
| 10 | 14 | |
| 11 | 15 | 1.7.2 (2016-08-04) |
| 12 | 16 | ------------------ | ... | ... |
| ... | ... | @@ -90,5 +90,5 @@ class CommentsAdmin(admin.ModelAdmin): |
| 90 | 90 | # Only register the default admin if the model is the built-in comment model |
| 91 | 91 | # (this won't be true if there's a custom comment app). |
| 92 | 92 | Klass = get_model() |
| 93 | -if Klass._meta.app_label is "django_comments": | |
| 93 | +if Klass._meta.app_label == "django_comments": | |
| 94 | 94 | admin.site.register(Klass, CommentsAdmin) | ... | ... |
Please
register
or
login
to post a comment