Re: Django 1.8 data migrations not able to locate related collections

2015-04-17 Thread Pavel Kuchin
related models.py lines https://github.com/virtualcommons/vcweb/blob/10f44c3038f70a2e91f3a80704a4ab30c748f3e9/vcweb/core/models.py#L2060 https://github.com/virtualcommons/vcweb/blob/10f44c3038f70a2e91f3a80704a4ab30c748f3e9/vcweb/core/models.py#L2087 Hi A Lee, > > Can't say for sure but probably

Re: Django 1.8 data migrations not able to locate related collections

2015-04-17 Thread Pavel Kuchin
Hi A Lee, Can't say for sure but probably it is because your related_name is not unique in core/migrations/0001_initial.py (https://github.com/virtualcommons/vcweb/blob/develop/vcweb/core/migrations/0001_initial.py#L647,

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread Pavel Kuchin
Yeah, sorry:) 2015-04-16 16:04 GMT+03:00 Vijay Khemlani <vkhem...@gmail.com>: > Why are you talking to me? I'm not OP xD > > On Thu, Apr 16, 2015 at 9:57 AM, Pavel Kuchin <pavel.s.kuc...@gmail.com> > wrote: >> >> Hi Vijay, >> >> Looks like Dja

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread Pavel Kuchin
, **kw): from your class, ordering should be based on fields definition order. Best regards, Pavel 2015-04-16 15:31 GMT+03:00 Vijay Khemlani <vkhem...@gmail.com>: > In the title: "'OrderedDict' object has no attribute 'keyOrder'" > > On Thu, Apr 16, 2015 at 6:13 AM,

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread Pavel Kuchin
Hi Willy, Can you send an error, because I see only the SignupFormExtra class. Yours sincerely, Pavel четверг, 16 апреля 2015 г., 1:41:47 UTC+3 пользователь willyhakim написал: > > Hi everyone, > I am using django-userena and extend the form class to add some of my own > fields. I followed >

Re: saving data using cleaned data method

2015-04-16 Thread Pavel Kuchin
Hi Sekkizhar, I think django.forms.ModelForm is exactly what you are looking for. (https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#modelform) Yours sincerely, Pavel. Good Morning, > I am trying to save data in the table using cleaned data by get and post > method in the view. >

Re: Django handle new ManyToManyField items with get_or_create()

2015-04-15 Thread Pavel Kuchin
Hi Filippo, You can check is form valid or not, then if valid save related model and then add M2M objects, like this: if form.is_valid(): model_instance = form.save() for tag in model_instance.tags.all(): t, created = Tag.objects.get_or_create(author=request.user, title=tag.title)

Re: Django ProgrammingError: no relation exists when using ManyToManyfield

2015-04-13 Thread Pavel Kuchin
it still > doesn't work. I have also tried makemigrations and migrate for individual > modules with no luck. > > On Sunday, April 12, 2015 at 10:12:08 AM UTC-5, Pavel Kuchin wrote: >> >> Hi Chase, >> >> Did you try makemigrations and migrate: >> $ python manage.py

Re: Django ProgrammingError: no relation exists when using ManyToManyfield

2015-04-12 Thread Pavel Kuchin
Hi Chase, Did you try makemigrations and migrate: $ python manage.py makemigrations $ python manage.py migrate You should run them for all modules at first time (do not set any specific module). Best regards, Pavel. I can post code and errors here, but have already posted on >

Re: KeyError: 'default'

2015-04-06 Thread Pavel Kuchin
Hi Mike, I think the issue is that Django can't find your default DB settings. Please take a look: https://docs.djangoproject.com/en/1.8/ref/settings/#databases Best regards, Pavel понедельник, 6 апреля 2015 г., 15:44:01 UTC+3 пользователь Mike Dewhirst написал: > > Can someone please