Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Easy to follow documentation #53

Open
prog-24 opened this issue Feb 21, 2018 · 1 comment
Open

Easy to follow documentation #53

prog-24 opened this issue Feb 21, 2018 · 1 comment

Comments

@prog-24
Copy link

prog-24 commented Feb 21, 2018

I have followed the documentation and to be honest I am a bit lost. I wanted to test a simple event where the user logs in an a query is sent to a server.

I have registered my hooks

HOOK_EVENTS = {
    # 'any.event.name': 'App.Model.Action' (created/updated/deleted)
    'user.logged_in':       'django.contrib.auth.models.User.created+',
    'user.added':       'django.db.models.signals.pre_save+',
    'user.changed':       'django.db.models.signals.pre_save+'
}

They are visible in django admin and I added the actions in the database. The request is not being sent however, what I'm I missing?

@avelis
Copy link
Contributor

avelis commented Mar 31, 2018

@prog-24 The value: 'django.db.models.signals.pre_save+' is not the correct value to assign here. It should be <app-name>.<model-name>.<'CRUD'-action>. e.g. blog.Article.created.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants