Re: django.db.utils.DatabaseError: value too long for type character varying(50)

2012-07-14 Thread James Rivett-Carnac
ng. Since nothing here is over 50 characters, is there something I'm missing. I am also using django_guardian james On Saturday, 14 July 2012 14:53:03 UTC+8, James Rivett-Carnac wrote: > > An old post, but I just had the same problem. > > On Monday, 20 September 2010 22:5

Re: django.db.utils.DatabaseError: value too long for type character varying(50)

2012-07-13 Thread James Rivett-Carnac
An old post, but I just had the same problem. On Monday, 20 September 2010 22:51:30 UTC+8, Valentin Golev wrote: > > Hello, > > I'm trying to deploy my Django application with PostgreSQL. While > trying to insert an object to the database, I'm getting the following > error: > > > django.db.uti

SelectDateWidget labels

2012-07-12 Thread James Rivett-Carnac
I am trying to put labels on subwidgets in SelectDateWidget, but I cannot see how to do this easily. The only way I can see to do this is to rewrite the render function to add in a label before each input. The problem with this is the label then is embeded with the select boxes and can't be ac

Testing FormWizard

2012-07-09 Thread James Rivett-Carnac
I am trying to write test cases for a django 1.4 CookieWizardView (django.contrib.formtools.wizard.views.CookieWizardView), and I'm not sure how to handle sending multiple posts to the view. class TestWizardView(TestCase): def setUp(self): self.form_one_post = QueryDict('field_1=valu

Multiple User Profiles using multi-table inheritance and Userena

2012-05-26 Thread James Rivett-Carnac
This is a question that gets asked in many forms, but I am having issues with the multi-table inherence method of doing this with Userena. I have strong reasons for needing multiple profile types which I won't go into here. i put example code in the following gist: https://gist.github.com/27928

Re: YAML Fixture is not working. DeserializationError

2012-04-23 Thread James Rivett-Carnac
Your yaml doesn't seem to be correctly formated, should be: - model: translations.Language pk: 1 fields: code: fr display_name: Français - model: translations.Language pk: 2 fields: code: en display_name: English model, pk, and fields are all on the same indentatio