Skip to main content
1 vote
2 answers
57 views

TypeError: '<' not supported between instances of 'CombinedExpression' and 'int' when trying to implement the post_save signal with django-axes

I'm trying to create a signal which sents an email informing about an access attempt, when a user fails to provide correct credentials when logging in. Access attempts are traced by the django-axes ...
fjkg's user avatar
  • 13
0 votes
0 answers
18 views

NoReverseMatch: Reverse for 'verify-email' with keyword arguments '{}' not found 1 pattern(s) tried: ['verify_email/(?P<username>[-a-zA-Z0-9_]+)/\\Z']

This is an email verification code application for new user sign up The user enters their username as email, and then email address, password and password confirmation. An otp code should be sent to ...
user27276055's user avatar
0 votes
0 answers
17 views

how to obtain a pop-up or system alert when my timer ends in Django

I have a task-timer app, the timer model has an attribute "end" that takes in timefield by generics.createAPIview. I want to add a feature using signals such that, when the timers end time ...
BK Anushree's user avatar
0 votes
0 answers
31 views

Cloudinary API fails to initialise api key when used with Django signals

I made a signal receiver for a model UserFiles and named it upload_to_cloudinary. This receiver calls a function inside it, which uploads a file to cloudinary. This works well enough if the receiver ...
Rishu Sharma's user avatar
0 votes
0 answers
31 views

Saving instance of model prior to sending out response in Django

Is there a way to add a record to me DB BEFORE sending off a response? I just learned about Django Signals so I assume that might be a candidate. The reason why I'm asking this is because of an issue ...
Liondancer's user avatar
  • 16.4k
0 votes
0 answers
18 views

Django - Disconnect signal with multiple receivers

I use pre_save and post_save signals in my app with many receivers on them. For example : @receiver(post_save, sender=SrdRevisionDocument) @receiver(post_save, sender=SrdRevisionWording) @receiver(...
Atro_TLT's user avatar
2 votes
1 answer
33 views

Django Signals : Access ManyToManyRel value from instance

I have the following signal : @receiver(post_save, sender=Document) def handle_added_or_edited_element(sender, instance, **kwargs): ''' This signal is used to compare the original and the ...
Atro_TLT's user avatar
0 votes
1 answer
39 views

Django : Locally save an instance of a Model

Using signals, I try to track the difference between the old instance of an object and the new instance when the Model is saved. I tried this : But logically in the model_post_init_handler method, it'...
Atro_TLT's user avatar
1 vote
1 answer
34 views

Django update m2m objects on save

I have a m-2-m rel and i want to update the rel B after any rel A is added via the admin page. Here the details: I have 2 models, Match (rel A) and Player (rel B). I want to update Player....
Matteo Bellarasa's user avatar
1 vote
0 answers
134 views

Why Django Signals async post-save is locking other async ORM calls?

I have a Django 5 application that use websockets using channels, and I'm trying to switch to AsyncConsumers to take advantage of asyncronous execution for I/O or external API tasks. I already wrote a ...
EdoG's user avatar
  • 355
2 votes
0 answers
36 views

Send notification of task assignments by email?(Django)

I am working on a kanban project. When a task is created, I want to send a notification mail to the employees assigned to the task. When a registration signal comes to my model, I capture it and get ...
Burak Özcan's user avatar
0 votes
0 answers
23 views

Django merge two m2m_change signals

i have a post model which has category m2m field and tag m2m field, on post post_save i want to retrieve the category ids and tag ids from that post model instance, but after some research i found out,...
muhammad huzaifa's user avatar
0 votes
1 answer
50 views

Writing a Django signal to log user activities in a model

These are my models in the models.py file. class User(AbstractUser): date_of_birth = models.DateField(blank=True, null=True) bio = models.TextField(blank=True, null=True) job = models....
farhan karimi's user avatar
0 votes
0 answers
58 views

Django signals debounce

In a project using Django's signal, when a series of UPDATEs of a particular model are executed, the processing of one SIGNAL is too heavy and causes discomfort to the user. The process fired by ...
fza_2000's user avatar
0 votes
1 answer
37 views

save method or post_save signal is not being called while through model instance of a ManyToManyField is getting created

I have a Post model in my Django app. It has a many-to-many relationship with User model through the UserTag model named user_tags. class Post(models.Model): id = models.UUIDField(default=uuid....
Tanvir Ahmed's user avatar

15 30 50 per page
1
2 3 4 5
60