django-signals
Issue with connecting django signals
I am trying to set up a History table that uses django signals in it in order to build a dashboard. Inside my history models.py I have:[详细]
2023-03-01 07:06 分类:问答how to cancel a delete in django signal
Is there a way to cancel a deletion of record using django pre_delete signal? example: def on_delete(sender,**kwargs):[详细]
2023-02-24 00:53 分类:问答Django: How to access original (unmodified) instance in post_save signal
I want to do a data denormalization for better performance, and put a sum of votes my bl开发者_开发问答og post receives inside Post model:[详细]
2023-02-22 14:57 分类:问答Working with Django's post_save() signal
I have two tables: class Advertisement(models.Model): created_at = models.DateTimeField(auto_now_add=True)[详细]
2023-02-20 17:30 分类:问答How To Run Arbitrary Code After Django is "Fully Loaded"
I need to perform some fairly simple tasks after my Django environment has been \"fully loaded\". More specifically I need to do 开发者_开发技巧things like Signal.disconnect() some Django Signals tha[详细]
2023-02-19 16:17 分类:问答Django autocategorize in m2m field
I have done a pre_save signal in my django/satchmo inherited model Product called JPiece and I have another model inheritance from satchmo Category called JewelCategory. The pre_save signal makes the[详细]
2023-02-18 16:12 分类:问答Sending django signals from django-admin command?
I have an unsual problem. In my Django application I use signals 开发者_StackOverflow中文版to send emails.[详细]
2023-02-14 21:47 分类:问答Create objects from one model based on new object in another model (Django)
Fairly new to Django (1.2), but just testing stuff out. My headache is figuring out a way to create a series of SKU objects when a Product object is created.[详细]
2023-02-12 21:11 分类:问答How can I detect when objects of a Django model are added/deleted?
When adding or removing objects of Foo type I need t开发者_运维技巧o do the same calculation. How can I detect the adding/deleting of objects for Foo model? For example:[详细]
2023-02-08 05:26 分类:问答Is it possible to selectively suppress a post_save (or other) signal in Django?
I\'m wondering whether it\'s possible to selectively suppress a Django signal (such as post_save or post_init) on object creation, or, alternatively, send it certain parameters.[详细]
2023-02-07 05:39 分类:问答