Re: BaseGenericInlineFormSet failing on Save As New in admin

2010-05-28 Thread Stephen Sundell
ta, we are only # creating new instances form.data[form.add_prefix(self._pk_field.name)] = None # Remove the object id from the form's data form.data[form.add_prefix(self.ct_fk_field_name)] = None return form On May 28, 12:36 pm, Stephen Sundell

Re: Content Types and Filtering Generic Relationships

2010-05-28 Thread Stephen Sundell
Have you checked out http://code.google.com/p/django-tagging/ ? On May 28, 12:54 pm, Streamweaver wrote: > Still hoping someone has some insight here.  I've been plugging away > at it and am still not finding an answer I can live with as an > engineer. > > Currently I'm cheating a bit to filter d

BaseGenericInlineFormSet failing on Save As New in admin

2010-05-28 Thread Stephen Sundell
I'm using an InlineAdmin that is a generic relation, similar to django tagging, with one of my model admins. The problem is on a save as new, if the original object has tags, then the initial form count, gotten from the management form, isn't zero, even though the new object will have zero tags, c

Content Transfer Encoding in Emails

2010-01-29 Thread Stephen Sundell
How would I get my content transfer encoding for emails sent through the django emails system to be 7bit? Stephen -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe

Html inside {% blocktrans %} tags

2009-05-08 Thread Stephen Sundell
Can I wrap something like : "Click here to go back." inside a blocktrans tag? If not is there some sort of work around for this? I know in this particular case it wouldn't be to bad to make the whole text the link, but this is just and example. Thanks --~--~-~--~~~--

regex query search with [\w]

2009-02-16 Thread Stephen Sundell
I'm trying to do a query filter with a regex expression where I want to search for a word character. I'm using postgresql and if I do Blog.objects.filter(post__regex=r'[\w]'), django ends up using [\\w] in the query. I can't seem to get one backslash in the query. Is there some way to do this?

nested applications and syncdb question

2008-09-25 Thread Stephen Sundell
I am trying to create one application with multiple modules in it. What I have now is an application directory with multiple directories each with its own models.py file. If I include the application in the settings file and run validate it checks the models, but syncdb doesn't add them to the da