sql translation error in django?

2008-12-26 Thread
Hi all! I'm working on an app which has two classes: # This one records acedemic journal name and related infomation: class Journals(models.Model): Name = models.CharField(u'Journal', max_length=200, unique=True) IsSelected = models.BooleanField(u'If it is a special journal', def

Re: sql translation error in django?

2008-12-26 Thread
Alex Koshelev 写道: > Paper.objects.filter(Journal__Name='Science').order_by("-PublishedDate") > > Read the documentation please. > > > Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

FileField cannot save file with chinese filenames.

2009-04-01 Thread
Hi all! I wrote a model to hold files uploaded by users, it goes like this: Model: class Userfiles(models.Model): user = models.ForeignKey( User, verbose_name="user name", ) upload_file = models.FileField( u"file", upload_to='user/%Y/%m/%d', ) upload_d

Re: FileField cannot save file with chinese filenames.

2009-04-01 Thread
Karen Tracey 写道: > On Wed, Apr 1, 2009 at 5:12 AM, 夏恺 <mailto:xia...@gmail.com>> wrote: > > > Hi all! > > I wrote a model to hold files uploaded by users, it goes like this: > > > This is ticket #10254: http://code.djangoproject.com/ticket/10254

Re: admin with data filtered with user scope

2009-12-08 Thread
-django-admin/index.html Xia Kai(夏恺) xia...@gmail.com http://blog.xiaket.org -- From: "gaddoz" Sent: Tuesday, December 08, 2009 9:59 PM To: "Django users" Subject: admin with data filtered with user scope > Hi all > > I&#

Re: how to not delete Image files

2009-12-10 Thread
Hope this link would be of use to you: http://docs.djangoproject.com/en/dev/topics/db/models/#overriding-predefined-model-methods Xia Kai(夏恺) xia...@gmail.com http://blog.xiaket.org -- From: "PanFei" Sent: Friday, December 11, 2009

Re: about django model save

2009-12-24 Thread
/msgcenter]python manage.py help sql Usage: manage.py sql [options] Prints the CREATE TABLE SQL statements for the given app name(s). --- Xia Kai(夏恺) xia...@gmail.com http://blog.xiaket.org

Re: about django model save

2009-12-24 Thread
Hi, It seemed that you have run syncdb before your adding the phone_num to the model. As the table is already created in the database, you may have to delete the table and create it again. Xia Kai(夏恺) xia...@gmail.com http://blog.xiaket.org

Re: templating output for loop incorrect- debugging help

2009-12-25 Thread
(Node): Xia Kai(夏恺) xia...@gmail.com http://blog.xiaket.org -- From: "dhruvg" Sent: Friday, December 25, 2009 4:00 PM To: "Django users" Subject: Re: templating output for loop incorrect- debugging help > any th

Re: Is it ok to use double quotes instead of single quotes in Field.choices?

2009-12-27 Thread
x27;I\'m looking for...'), -------- Xia Kai(夏恺) xia...@gmail.com http://blog.xiaket.org -- From: "Continuation" Sent: Sunday, December 27, 2009 4:12 PM To: "Django users" Subject: Is it ok to use double quotes inste

Re: How to test activation email on windows?

2009-12-27 Thread
Hi, Please consult the documentation: http://docs.djangoproject.com/en/dev/topics/email/#topics-email and your problem will be solved. :) Xia Kai(夏恺) xia...@gmail.com http://blog.xiaket.org -- From: "vishy&q

Re: Storing user's IP while using admin site

2009-12-30 Thread
Hi, The best idea I can come up with is to override admin.ModelAdmin's save_model method, which would require only about 10 lines of code and IMHO it's pretty clean. ---- Xia Kai(夏恺) xia...@gmail.com http://blog.

Re: how to put html in __unicode__() ?

2010-01-01 Thread
ransformed. ---- Xia Kai(夏恺) xia...@gmail.com http://blog.xiaket.org -- From: "ev" Sent: Saturday, January 02, 2010 12:35 AM To: "Django users" Subject: how to put html in __unicode__() ? > I tryed to do: > > class

Re: Photo + thumbnail

2010-01-02 Thread
/topics/db/models/#overriding-predefined-model-methods Xia Kai(夏恺) xia...@gmail.com http://blog.xiaket.org -- From: "Chris Moffitt" Sent: Saturday, January 02, 2010 11:59 PM To: Subject: Re: Photo + thumbnail