django-signals
Simple form not validating
I have found here on stackoverflow a method to extend django\'s built-in authentication using signals. My base User is defined by \'email\' and passwords (so no username there). So I\'m trying to modi[详细]
2023-01-06 14:01 分类:问答Django: Before a model is updated, I'd like to "look at" its previous attributes
When an update/create is performed on a Django model (.save()) I would lik开发者_如何学运维e to be able to \"step in\" and compare some particular attributes to what they were set to previously (if th[详细]
2023-01-06 11:37 分类:问答Storing user's avatar upon registration
I have an extended UserProfile for registering new users. My user_created function connects to signals sent upon registering basic User instance and creates new UserProfile with extended fields from m[详细]
2023-01-05 08:58 分类:问答Extending django-registration using signals
I have found here on stackoverflow a solution to extend django-registration with new fields using signals. Here\'s the link : http://dmitko.ru/?p=546 .[详细]
2023-01-04 21:26 分类:问答How can I handle dynamic calculated attributes in a model in Django?
In Django I calculate the breadcrumb (a list of fathers) for an geographical object. Since it is not going to change very often, I am thinking of pre calculating it once the object is saved or initial[详细]
2022-12-29 16:06 分类:问答How do I use Django signals with an abstract model?
I have an abstract model that keeps an on-disk cache.When I delete the model, I need it to delete the cache.I want this to happen for every derived model as well.[详细]
2022-12-28 00:50 分类:问答Django "comment_was_flagged" signal
This is my first time working with django signals and I would like to hook the \"comment_was_flagged\" signal provided by the comments app to notify me when a comment is flagged.[详细]
2022-12-25 17:26 分类:问答What are the options for overriding Django's cascading delete behaviour?
Django models generally handle the ON DELETE CASCADE behaviour quite adequately (in a way that works on databases that don\'t support it natively.)[详细]
2022-12-23 04:51 分类:问答about the post_save signal and created argument
the docs says: post_save django.db.models.signals.post_save created A boolean; True if a -new- record was create.[详细]
2022-12-22 09:24 分类:问答Django Signal via Decorator on Model Method?
I\'m trying to do something like these proposed signal decorators.In addition to having a decorator that connects the decorated method to a signal (with the signal\'s sender as an argument to the deco[详细]
2022-12-20 17:58 分类:问答