django-signals
Prevent delete in Django model
I have a setup like this (simplified for this question): class Employee(models.Model): name = models.CharField(name, unique=True)[详细]
2023-02-07 00:24 分类:问答Django: Signal callback function missing foreign on model
Hey, Im trying to get the signal pre_save to work on my model but there seems to be some problem with a foreign key or something. My model is[详细]
2023-02-04 06:38 分类:问答Custom signal does not work
I created a signal: sig_published = Signal() This signal is placed in a signals.py, which I import in my models.py:[详细]
2023-01-30 08:16 分类:问答django post_save signal sends outdated inline formsets
Consider the following: class OrderForm(models.Model): title = models.CharField(max_length=100) desc= models.TextField()[详细]
2023-01-23 14:02 分类:问答Django Signals in celery
I have a task that runs in a Celerybeat instance. When that task is executed, it sometimes modifies a model object, which should fire off a post/pre_save signal, but it doesn\'t. The signal is not hap[详细]
2023-01-20 05:01 分类:问答Django notification comment get owner
I am looking at accessing the user who owns the content_type of a posted comment Currently I can access the user who posts, the comment, however I would like to notify the person who owns the item...[详细]
2023-01-17 16:55 分类:问答How do I prevent fixtures from conflicting with django post_save signal code?
In my application, I want to create entries in certain tables when a new user signs up. For instance, I want to create a userprofile which will then reference their company and some other records for[详细]
2023-01-12 08:51 分类:问答django-signals vs triggers?
I read about django signals (http://docs.djangoproject.com/en/dev/topics/signals/), but as far as I understand, signals are never converted into literal SQL triggers (http://en.wikipedia.org/wiki/Data[详细]
2023-01-12 08:26 分类:问答Is there way to make costum signal when Manytomany relations created? Django!
Is there way to mak开发者_开发技巧e custom signal when ManyToMany relations created? Without knowing more details about what you are trying to accomplish I\'d suggest that you take a look at this prev[详细]
2023-01-11 17:46 分类:问答Django built-in signals problem: error when using post_save
I\'m building an app that notifies user when new ThreadedComments appear. For this I\'m using post_save signal. Here\'s my models.py:[详细]
2023-01-06 18:47 分类:问答