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
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
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
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
-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
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
/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
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
(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
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
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
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.
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
/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
14 matches
Mail list logo