[GH-ISSUE #1050] Gettin AttributeError on admin from latest master version #732

Closed
opened 2026-02-25 23:43:23 +03:00 by kerem · 4 comments
Owner

Originally created by @spapas on GitHub (Aug 16, 2024).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/1050

Hey friends, I updated to the latest version from master and getting:

AttributeError: Unable to lookup 'channel__kind' on Notification or NotificationsAdmin

The commit is d3ae4e7fac6b99a6211559f79740076fe9bfe08d.

TIA

Originally created by @spapas on GitHub (Aug 16, 2024). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/1050 Hey friends, I updated to the latest version from master and getting: ```AttributeError: Unable to lookup 'channel__kind' on Notification or NotificationsAdmin``` The commit is `d3ae4e7fac6b99a6211559f79740076fe9bfe08d`. TIA
kerem closed this issue 2026-02-25 23:43:23 +03:00
Author
Owner

@cuu508 commented on GitHub (Aug 16, 2024):

Did you upgrade packages to versions listed in requirements.txt? In particular, are you running Django 5.1?

On Fri, Aug 16, 2024, at 11:07 PM, Serafeim Papastefanos wrote:

Hey friends, I updated to the latest version from master and getting:

AttributeError: Unable to lookup 'channel__kind' on Notification or NotificationsAdmin

The commit is d3ae4e7fac6b99a6211559f79740076fe9bfe08d.

TIA


Reply to this email directly, view it on GitHub https://github.com/healthchecks/healthchecks/issues/1050, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFBSYYKNIMBYPXVVLHU5KDZRZLWVAVCNFSM6AAAAABMUUO66CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TAOJRGQ4TGOA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

<!-- gh-comment-id:2294164641 --> @cuu508 commented on GitHub (Aug 16, 2024): Did you upgrade packages to versions listed in requirements.txt? In particular, are you running Django 5.1? On Fri, Aug 16, 2024, at 11:07 PM, Serafeim Papastefanos wrote: > > > Hey friends, I updated to the latest version from master and getting: > > `AttributeError: Unable to lookup 'channel__kind' on Notification or NotificationsAdmin` > > The commit is `d3ae4e7fac6b99a6211559f79740076fe9bfe08d`. > > TIA > > > — > Reply to this email directly, view it on GitHub <https://github.com/healthchecks/healthchecks/issues/1050>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFBSYYKNIMBYPXVVLHU5KDZRZLWVAVCNFSM6AAAAABMUUO66CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TAOJRGQ4TGOA>. > You are receiving this because you are subscribed to this thread.Message ID: ***@***.***> >
Author
Owner

@spapas commented on GitHub (Aug 16, 2024):

Hello @cuu508 yes you are right I didn't have installed the requirements. It works now however I get another warning:

When running migrate I get:

 Your models in app(s): 'api' have changes that are not yet reflected in a migration, and so won't be applied. 
  Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.

Trying makemigrations dry run I get:

python manage.py makemigrations --dry-run

Migrations for 'api':
hc/api/migrations/0111_alter_channel_kind.py
~ Alter field kind on channel

Shouldn't that migration be already commited on the master ?

<!-- gh-comment-id:2294197055 --> @spapas commented on GitHub (Aug 16, 2024): Hello @cuu508 yes you are right I didn't have installed the requirements. It works now however I get another warning: When running migrate I get: ``` Your models in app(s): 'api' have changes that are not yet reflected in a migration, and so won't be applied. Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them. ``` Trying makemigrations dry run I get: python manage.py makemigrations --dry-run Migrations for 'api': hc/api/migrations/0111_alter_channel_kind.py ~ Alter field kind on channel Shouldn't that migration be already commited on the master ?
Author
Owner

@cuu508 commented on GitHub (Aug 17, 2024):

It's related to this commit which removes a few obsolete channel kinds: github.com/healthchecks/healthchecks@8054191be3

You can safely ignore this warning.

<!-- gh-comment-id:2294802857 --> @cuu508 commented on GitHub (Aug 17, 2024): It's related to this commit which removes a few obsolete channel kinds: https://github.com/healthchecks/healthchecks/commit/8054191be318453b6ed115648408369f40ddbbd5 You can safely ignore this warning.
Author
Owner

@spapas commented on GitHub (Aug 17, 2024):

Excellent thank you!

<!-- gh-comment-id:2294963374 --> @spapas commented on GitHub (Aug 17, 2024): Excellent thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#732
No description provided.