Query filtering using related object

2007-09-17 Thread Casey T. Deccio
Given the following model: class ModelA(models.Model): name = models.CharField(max_length=10) class ModelB(models.Model): a = models.ForeignKey(ModelA) name = models.CharField(max_length=10) I'd like to perform a query for ModelA objects that have no ModelB objects referring to them.

Signal for related update

2007-08-28 Thread Casey T. Deccio
I'd be interested in a signal for related add/remove relationships. This would involve a signal for one-to-many, many-to-one, and many-to-many saves. Something like: dispatcher.send(signal=signals.pre_related_add, \ sender=self.__class__, related_object=self, instance=self) It is

Run script from management.py

2007-08-27 Thread Casey T. Deccio
I would find it extremely useful to pass a script argument to the 'manage.py shell' command, so I could run arbitrary scripts using the models library defined in project/app. I can't currently see a way to do this except using input redirection: python manage.py shell < script.py Is there a

ticket 4312: add values argument to save_instance

2007-07-16 Thread Casey T. Deccio
Requesting feedback regarding ticket #4312. (the ticket currently uses 'defaults' as the name of the argument, but I would think 'values' or 'extra_values' would be more intuitive) The addition of a dictionary argument to save_instance would allow the developer to supply values for Model

'values' param to newforms save_instance (ticket #4312)

2007-06-13 Thread Casey T. Deccio
I just wanted some feedback on ticket 4312--or an alternative for accomplishing the same thing. See comments in ticket for more information. Thanks, Casey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

ticket feedback process

2007-05-21 Thread Casey T. Deccio
I was wondering what is the most appropriate way to get feedback on tickets that have been submitted (bugs and/or features)--through the ticket system itself or by starting a discussion on the developers list (after a ticket has been submitted)? Thanks, Casey