Commit e168198291526075423050f1f681176dad1e69d0

Authored by Paulo
Committed by Claude Paroz
1 parent ea4c834c

Fixed #95 -- Compare values instead of identities

@@ -6,7 +6,11 @@ History @@ -6,7 +6,11 @@ History
6 Pending 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 1.7.2 (2016-08-04) 15 1.7.2 (2016-08-04)
12 ------------------ 16 ------------------
@@ -90,5 +90,5 @@ class CommentsAdmin(admin.ModelAdmin): @@ -90,5 +90,5 @@ class CommentsAdmin(admin.ModelAdmin):
90 # Only register the default admin if the model is the built-in comment model 90 # Only register the default admin if the model is the built-in comment model
91 # (this won't be true if there's a custom comment app). 91 # (this won't be true if there's a custom comment app).
92 Klass = get_model() 92 Klass = get_model()
93 -if Klass._meta.app_label is "django_comments": 93 +if Klass._meta.app_label == "django_comments":
94 admin.site.register(Klass, CommentsAdmin) 94 admin.site.register(Klass, CommentsAdmin)
Please register or login to post a comment