Re: Need help with auto_now_add and auto_now fields

2015-08-03 Thread rajan santhanam
No problem. Still you can provide an one off value by selecting option 1 and migrate. It won't have any impact. I think this warning will arise on every occasion we alter the table structure irrespective of entry being there or not. On 04-Aug-2015 11:05 am, "sarfaraz ahmed"

Re: Need help with auto_now_add and auto_now fields

2015-08-03 Thread sarfaraz ahmed
I have entries present in User Profile Table. But this field belongs to User_Address model which is new and does not have any entries present. Please advice. On Tue, Aug 4, 2015 at 12:51 AM, rajan santhanam wrote: > Hi Ahmed, > > This message is because you hav few

Re: Django M2M with Oracle database FieldDoesNotExist error

2015-08-03 Thread mohsenbande
i found that even trying to access the relation (i.e. foo.bars) will trigger the same error !!! the only special thing about my model is that i defined foo's primary key as BigIntegerField On Tuesday, August 4, 2015 at 8:15:42 AM UTC+4:30, mohse...@gmail.com wrote: > > Erik, as stated in

Re: DB migration bug in 1.8.3 when creating ManyToMany relation.

2015-08-03 Thread mohsenbande
Chen, what is the error? is it the same as what i reported here On Tuesday, August 4, 2015 at 4:24:01 AM UTC+4:30, Chen Xu wrote: > > Hi Everyone, > Does anyone experience a bug in 1.8.3 on creating ManyToMany relations? I >

Re: Django M2M with Oracle database FieldDoesNotExist error

2015-08-03 Thread mohsenbande
Erik, as stated in documentation , what you said is equivalent to what i did and the error exists yet. to have more details, here is the stack trace: Traceback (most recent call last): File "", line 2, in File

Re: BaseListView's get_context_data is missing kwargs?

2015-08-03 Thread James Schneider
No problem. Not sure if you were looking at the source code or somewhere else, but Classy CBV's is always the place I start: http://ccbv.co.uk/projects/Django/1.8/django.views.generic.list/ListView/ -James On Aug 3, 2015 7:37 PM, "Ken" wrote: > @Jordi, Thanks for tip on

Re: BaseListView's get_context_data is missing kwargs?

2015-08-03 Thread Ken
@Jordi, Thanks for tip on self.kwargs in View. That should work. I'll rewrite my get(). @James - No, no reason in particular. Wasnt paying attention, I guess. I was just staring at the get() method in BaseListView and thinking, ah, this is the place I want to inject my filter form into

DB migration bug in 1.8.3 when creating ManyToMany relation.

2015-08-03 Thread Chen Xu
Hi Everyone, Does anyone experience a bug in 1.8.3 on creating ManyToMany relations? I have the following very simple code: from django.contrib.auth.models import User class Agent(models.Model): name = models.CharField(max_length=100) users = models.ManyToManyField(User,

Re: Introduction to Pulpo-Forms

2015-08-03 Thread Luciano Ferrari
Hi sarfaraz, we are writing new posts with details and animated gifs of the tool features. I will post it in this blog when finished. Thanks for your interest and please contact us if you have any questions about the tool. All the best. Luciano Luciano Ferrari www.octobot.io Skype:

Re: Need help with auto_now_add and auto_now fields

2015-08-03 Thread rajan santhanam
Hi Ahmed, This message is because you hav few entries already present for that model in DB. If it is OK for you, you can add datetime.now as default value for the existing rows Many Thanks Rajan -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: About multiple GET params persistance between requests

2015-08-03 Thread Ryan Nowakowski
On Mon, Aug 03, 2015 at 11:49:09AM -0400, felix wrote: > El 03/08/15 09:42, duriromp...@gmail.com escribió: > >I'm in a point of my app where I've two GET params, *p* and *q* > >(pagination and query search), and I think that the best method to > >remember the params value when you change page

Re: Need help with auto_now_add and auto_now fields

2015-08-03 Thread sarfaraz ahmed
I missed the pastebin link in my last post. Sorry... Here is the model code http://pastebin.com/5EF1hV8U On Tuesday, 4 August 2015 00:48:18 UTC+5:30, sarfaraz ahmed wrote: > > Hello Team, > > I have a model and I have added two fields to User_Address model > creation_date and updation_date. I

Need help with auto_now_add and auto_now fields

2015-08-03 Thread sarfaraz ahmed
Hello Team, I have a model and I have added two fields to User_Address model creation_date and updation_date. I have pasted the model code at pastebin. Please take a look. I am getting following error while running makemigrations command You are trying to add a non-nullable field

Re: Django 1.4 - how to display a success message on form save

2015-08-03 Thread Iyengar8
But the message gets displayed only after I reload the page, the page isn't updated. On Tuesday, 26 June 2012 08:46:04 UTC-4, JirkaV wrote: > > >> @Jirka - thanks. I saw something about the messaging framework and even > >> tried one example which did not work. > > Using the messaging

Re: About multiple GET params persistance between requests

2015-08-03 Thread felix
El 03/08/15 09:42, duriromp...@gmail.com escribió: I'm in a point of my app where I've two GET params, *p* and *q* (pagination and query search), and I think that the best method to remember the params value when you change page is to use a string to manually build up the params URL. Any

About multiple GET params persistance between requests

2015-08-03 Thread durirompepc
I'm in a point of my app where I've two GET params, *p* and *q* (pagination and query search), and I think that the best method to remember the params value when you change page is to use a string to manually build up the params URL. Any ideas? -- You received this message because you are

Re: Django M2M with Oracle database FieldDoesNotExist error

2015-08-03 Thread Erik Cederstrand
> Den 03/08/2015 kl. 08.50 skrev mohsenba...@gmail.com: > > Hello Django community. > I have two Django models Foo and Bar that have a ManyToMany relation: > > Class Foo(models.model): > > ... > > bars = models.ManyToManyField('Bar', related_name='foos') > somewhere in the code, i do

Re: An FieldDoesNotExist happen when I use migrate

2015-08-03 Thread mohsenbande
Mr. Yang Did you managed to solve this error? On Tuesday, May 19, 2015 at 1:45:05 PM UTC+4:30, Zhong Yang wrote: > > Hi everyone, I'm a new user, please help me if you have time, I'm very > appreciate. > My Django version is 1.8.0 > I have User model it has friends list which is many to many

Django M2M with Oracle database FieldDoesNotExist error

2015-08-03 Thread mohsenbande
Hello Django community. I have two Django models Foo and Bar that have a ManyToMany relation: Class Foo(models.model): ... bars = models.ManyToManyField('Bar', related_name='foos') somewhere in the code, i do direct assignment

Re: Models.clean() how to raise ValidationError WITH error_code and show field_based errors in the Form-Template?

2015-08-03 Thread ThomasTheDjangoFan
Hi Jordi, thanks a lot for your response! Yeah definetly, BUT this error message could change during development and I guess that is the reason why the django-docs recon you to set error_codes. This why you wouldn't have to touch the tests when changing the error-message but keeping the

Re: same field in two classes

2015-08-03 Thread Javier Guerra Giraldez
On Sun, Aug 2, 2015 at 5:54 PM, Robin Lery wrote: > You can use inheritance. Or content type. Or use signals to get the value of > salary from one model and save it to another model. or choose the right place to store it and don't duplicate information. -- Javier --