Hi,
I needed to change the date format the user sees in a field and I used
'input_formats'. But I was wondering if there was a setting to change
it for the whole project, kind of a locale for dates. I tried to add
DATE_FORMAT / DATETIME_FORMAT to the settings file but it did not
change the behavi
> Best practice here would be to stop trying to use a webserver to do
> things it wasn't intended for.
>
> If you need a separate process/thread to run regularly and perform
> some background processing, then put that code in a standalone script
> and use a crontab entry to invoke the script.
Eve
Hi,
I have 2 issues that presumably could be related:
1. when I totally stop apache, I see that some apache processes remain
running. When I repeat the stop operation, apache says that apache is not
running, whereas the processes do exist. So, I have to kill them manually.
2. For a single HTTP r
Thanks for confirming it Nick. I saw it also on 1.0.2. I went ahead
and created a ticket, it's ticket 5.
Margie
On May 13, 1:32 pm, NickPresta wrote:
> I can confirm this happens with 1.0.2 Final.
>
> On May 7, 2:44 pm, Margie wrote:
>
> > I am trying to override the admin sites' change_l
On May 14, 10:03 am, Filip Gruszczyński wrote:
> > Best practice here would be to stop trying to use a webserver to do
> > things it wasn't intended for.
>
> > If you need a separate process/thread to run regularly and perform
> > some background processing, then put that code in a standalone scr
I believe that's I choose the first option.
thx for your answer!!
On May 12, 5:06 pm, George Song wrote:
> On 5/12/2009 3:27 AM, mabuse wrote:
>
> > I am developing a django site and my aim is to obtain a site with a
> > core application that would be the site basis and above it addons
> > t
On May 14, 7:14 pm, Valery Khamenya wrote:
> Hi,
>
> I have 2 issues that presumably could be related:
>
> 1. when I totally stop apache, I see that some apache processes remain
> running. When I repeat the stop operation, apache says that apache is not
> running, whereas the processes do exist
Dear all
Does anybody know a good django application for gravatar (
http://gravatar.com ) ?
Thank you very much for the redirection.
:-)
--
If you can't believe in God the chances are your God is too small.
Read my blog: http://joshuajava.wordpress.com/
Follow us on twitter: http://twitter.co
I mostly stick to defensive programming so rarely does the need to
debug appear; if it does, I use simple print commands to find the
stage on which the data is broken; then I fix the algo or add another
assert statement. This enables using Kate (or whatever text editor) +
manage.py for everything.
Dear newbie,
I am a fourth-year student in IT in cambodia. I just start to learn
Python, and now i just start to learn about how to develop the website by
using DJANGO. Could you please give to me any idea and tell me about some
document for the very beginner programming.
Thanks in a
Dear all value Django team,
I am a third-year student in IT field that focus on Computer
programming in Cambodia. I have known a little about Python. Now, i am
start to learn to develop website by using Python framework Django.
Could you please tell very step by step what do i need to in
I am using
resultset = queryset.get(status__in=['pending'])
but it is giving me error which says:
Exception Type: MultipleObjectsReturned
Exception Value:
get() returned more than one WapAd -- it returned 3! Lookup parameters were
{'status__in': ['pending']}
Exceptio
On Thu, May 14, 2009 at 6:56 AM, veasna.bunhor wrote:
>
>
> Dear all value Django team,
>
> I am a third-year student in IT field that focus on Computer
> programming in Cambodia. I have known a little about Python. Now, i am
> start to learn to develop website by using Python framework Dja
Hi,
I have a form which has a ModelChoiceField, whose queryset has to be
set dynamically (when the form is instantiated).
I have read an earlier posting on how to do this:
http://groups.google.com/group/django-users/browse_thread/thread/847ec83e26dd7846/f0b15945a01eafe2?lnk=gst&q=queryset+modelcho
Thanks in advanced.
On Thu, May 14, 2009 at 6:37 PM, Tomas Zulberti wrote:
>
> On Thu, May 14, 2009 at 6:56 AM, veasna.bunhor
> wrote:
> >
> >
> >Dear all value Django team,
> >
> >I am a third-year student in IT field that focus on Computer
> > programming in Cambodia. I have known a
On Thu, May 14, 2009 at 12:01 PM, Prabhjyot Singh wrote:
>
> I am using
>resultset = queryset.get(status__in=['pending'])
> but it is giving me error which says:
>
> Exception Type: MultipleObjectsReturned
> Exception Value:
>
> get() returned more than one WapAd -- it returned 3!
Hi,
i have included many static pages in my template using
{% include staticpage.html %}
i have started using views and forms, so i am tring to include a form
in my template. I am not sure how to do this.
Could any one please help on this..
Thanks and Regards,
A
--~--~-~--~~--
Hi,
well I have a solution, but it's not ideal.
It involves extending the BaseFormSet class, and passing an extra
parameter into the subclass's __init__ method, and saving this value
as an attribute to self. The subclass also had to override the
_construct_form method, copying all of the code o
Ok, thanks. I'll give it a try :-)
W dniu 14 maja 2009 11:40 użytkownik Daniel Roseman
napisał:
>
> On May 14, 10:03 am, Filip Gruszczyński wrote:
>> > Best practice here would be to stop trying to use a webserver to do
>> > things it wasn't intended for.
>>
>> > If you need a separate process/
Ok. I updated to the latest trunk release this morning and now when I
run django-admin.py startapp I get the following: (specs:
Python 2.5, Win XP Pro, Django trunk release 10781)
>django-admin.py startapp rd
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\django\bin\dj
BY passing instance of form as context to the template and saying
{{form.as_table}} in the template.
On May 14, 5:22 pm, aruns wrote:
> Hi,
>
> i have included many static pages in my template using
>
> {% include staticpage.html %}
>
> i have started using views and forms, so i am tring to in
Hi, is there a way to have a field editable by the superuser but not
by another logged in user, in the admin area?
The rest of the model should be editable by the logged in user.
example:
class Test(models.Model):
title = models.CharField(max_length=150)
page = models.TextField()
So pag
Hi Graham,
many thanks for your quick and very helpful reply!
> You need to ascertain whether they were Apache parent process, Apache
> server child worker processes, or mod_wsgi daemon mode processes.
OK i'd check next time, i've seen your hint on how to do it, thanks!
> > a. both issues app
Integrating with Gravatar is very easy
1) Get MD5 hash of user's email id
import hashlib
def getMD5(self):
m = hashlib.md5()
m.update(self.user.email)
return m.hexdigest()
2) and prepare image url as below
http://www.gravatar.com/avatar/{{user-email-MD5-
ha
Hey all,
I'm using an app called swingtime that I installed for event
management.
In the admin interface I'm trying to add events. It works great on my
local development setup but when I've uploaded to the web server I'm
unable to save events through the admin. It comes up with
KeyError at /adm
On Wed, May 13, 2009 at 11:56 PM, aa56280 wrote:
>
> Hello there,
>
> I have a form. Once it's submitted (method=POST) the view handling the
> submit uses the @login_required decorator.\
Isn't it possible to force the user to login before filling out the form?
That eliminates all the issues wit
Hi All
I am executing the command "python manage.py dbshell" and it throws
the following error
"Profiling timer expired"
I have an alias in my .bashrc of
alias mysql='mysql -u subramanyam -pxxx'
Tried unaliasing mysql but didnt work whereas it works fine from
command line
Any pointers on th
So you need dynamic form as below
Class MyForm(forms.ModelForm):
fields
...
def __init__(self, user,*args , **kwargs):
super(MyForm,self).__init__(*args,**kwargs)
if user is not superuser :
Have been at this now for some hours and still can't see the wood for
the trees. Failed to get two signals working - one called on pre_save
to keep an audit trail of one field on a model (didn't implemenet the
Audit.py version in the wiki as more complex than I needed). The
other to create some
On Wed, May 13, 2009 at 5:00 PM, eric.frederich wrote:
>
> I have a model called Offering which has a start date and a duration
> in days.
> I want to do a query and get instances where the end date (not
> modeled) is in the past.
> I know that I can add a non-editable field end-date that is compu
Yeah, I've used count() before but I didn't see how to do 2 counts in
the same query.
I thought maybe the new annotate or aggregate stuff might help, but it
wasn't obvious to me.
Thanks,
Eric
On May 13, 8:30 pm, raman wrote:
> This is a "count()" method for querysets:
>
> http://docs.djangopro
This could be related to ticket #10521
http://code.djangoproject.com/ticket/10521,
which has been fixed. It's currently in the trunk already, since
changeset http://code.djangoproject.com/changeset/10674 .
~KEGan
On May 14, 12:36 am, Sean Brant wrote:
> I am also having a issue with contrib.au
Im also a django beginner, but i have bit more advanced knowledge
about js/jquery
Here's what ive learned so far: All js events happen in browser and
are all related/attached to some DOM elements.
Basic (model)form flow works like that:
You create a model
You create a modelform (in apps forms.py
Hi Dan,
Thanks for the tips. I think I've figured out what went wrong.
First up: no, I am not using a virtualenv. I was able to serve the
site using "./manage.py runserver" albeit a bit slow (due to load
issues I believe). So the problem ultimately was my mod_wsgi setup.
The fix:
For starters,
Ccorrection: The names and paths in WSGIScriptAlias and Directory were
inconsistent. The sample config file should read as follows:
httpd/conf.d/python.conf
LoadModule wsgi_module modules/mod_wsgi.so
WSGIDaemonProcess myapp
WSGIProcessGroup %{GL
Tim,
Thanks for the fantastic insight into the browser issues with 307
redirects. I'll explore this a bit further and see which route I want
to take.
Given that the form in question is simply a button that says "Join
network," I may be inclined to just let the user login, come back to
the page a
On May 14, 8:29 am, TiNo wrote:
> Isn't it possible to force the user to login before filling out the form?
> That eliminates all the issues with redirecting the POST data.
How ironic. I clicked on the Reply link and Google told me I need to
sign in in order to reply. I was then brought back an
Hello,
I'd like to import the variables from view to form, but after trying
several ways, I failed.
For example: user01 inputs his username/password(apache
authentication) to login, then based on this username, function,
get_list_from_ldap, will get a relative list from LDAP. Different
username
On Wed, May 13, 2009 at 6:30 PM, Technicalbard wrote:
>
> Hi,
>
> I'm planning a new project, and I want the following feature set
> (eventually). It will of course be rolled out in parts as apps are
> completed. The purpose of this is to manage knowledge in various
> domains.
>
> - wiki-type
Well, the problem with built in comments framework is that I need few more
fields in comments.
What I created is:
MODEL:
class Comment(models.Model):
name = models.CharField(max_length = 30)
body = models.CharField(max_length = 2000)
article = models.ForeignKey(Article)
def __un
On May 14, 5:59 pm, Oleg Oltar wrote:
> Well, the problem with built in comments framework is that I need few more
> fields in comments.
>
> What I created is:
>
> MODEL:
>
> class Comment(models.Model):
> name = models.CharField(max_length = 30)
> body = models.CharField(max_length = 200
On Thu, May 14, 2009 at 2:41 PM, bsisco wrote:
>
> I've uninstalled and reinstalled django and I still can't get this to
> work. Any help would be greatly appreciated...
>
> On May 14, 8:46 am, bsisco wrote:
> > Ok. I updated to the latest trunk release this morning and now when I
> > run djan
I've uninstalled and reinstalled django and I still can't get this to
work. Any help would be greatly appreciated...
On May 14, 8:46 am, bsisco wrote:
> Ok. I updated to the latest trunk release this morning and now when I
> run django-admin.py startapp I get the following: (specs:
> Python 2
import django works fine. i posted the results of >echo %pythonpath% and
echo %path% in my first message but here it is again:
*>echo %pythonpath%
> C:\Python25;C:\Python25\Lib\**site-packages\django;C:\**django_projects;
>
> and my win path is :
> >echo %path%
> C:\Program Files\PHP\;C:\Perl\sit
On Thu, May 14, 2009 at 6:48 AM, phoebebright wrote:
>
> Have been at this now for some hours and still can't see the wood for
> the trees. Failed to get two signals working - one called on pre_save
> to keep an audit trail of one field on a model (didn't implemenet the
> Audit.py version in the
On Thu, May 14, 2009 at 11:02 AM, Blake M. Sisco wrote:
> import django works fine. i posted the results of >echo %pythonpath% and
> echo %path% in my first message but here it is again:
>
> *>echo %pythonpath%
>> C:\Python25;C:\Python25\Lib\
>> **site-packages\django;C:\**django_projects;
>>
>>
Laszlo,
django/bin is in my pathnot sure why gmail decided to format that so
oddly but it's four lines up from the bottom of the quote in my last
post.:-) I made sure that it was there just now as well even went as
far as rebooting the machine and still no joy...
Blake M. Sisco
LOR Manuf
If you don't want to implement your own solution you could use.
http://code.google.com/p/django-gravatar/
On May 14, 6:30 am, Joshua Partogi wrote:
> Dear all
>
> Does anybody know a good django application for gravatar
> (http://gravatar.com) ?
>
> Thank you very much for the redirection.
>
>
On Wed, 2009-05-13 at 05:21 -0700, Dave Brueck wrote:
> Has anyone in this group implemented any sort of login-as-another-user
> functionality with Django?
I implemented "sticky superuser logins" about a year ago (the last
time I worked with django until now), so I can attest it is a neat
trick,
Hi all,
I have a small project still under development. I don't set any cache
stuff yet. But for somehow django still cache all web pages.
Why django default uses cache? How can i disable the all level
caches?
I tried
from django.views.decorators.cache import cache_control
@cache_control(pri
Hi there,
I have a model called Locality that has a coordinates field. When I
view the admin change form for the model, the mapping widget appears,
but the actual map is grayed out.
For example, for Atlanta, GA, the coordinates are 33.69132,
-84.40137. When the OpenLayers map widget is rendered
Is there a way to specify arguments for your app when debugging in
IDLE? Like manage.py runserver. I can't figure out how to add the
runserver to the command to start debugging.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I looked here
http://docs.djangoproject.com/en/dev/topics/http/file-uploads/
and it mentions request.FILES being a dictionary, but the 1.0 porting
guide here
http://docs.djangoproject.com/en/dev/releases/1.0-porting-guide/
says otherwise.
Was this overlooked? I think the page needs an update.
On May 14, 3:51 pm, msoulier wrote:
> I looked here
>
> http://docs.djangoproject.com/en/dev/topics/http/file-uploads/
>
> and it mentions request.FILES being a dictionary, but the 1.0 porting
> guide here
>
> http://docs.djangoproject.com/en/dev/releases/1.0-porting-guide/
>
> says otherwise.
>
Hi,
I am working my way through the Django 1.0 book by Ayman Hourieh from
Packt and I just reached the Admin Interface chapter (which is number
8 if you have the book). Anyway, when I login to my site's admin, I'm
told that I don't have permission to edit anything. I loaded up the
shell and did a
On Thu, May 14, 2009 at 11:45 AM, Blake M. Sisco wrote:
> Laszlo,
> django/bin is in my pathnot sure why gmail decided to format that so
> oddly but it's four lines up from the bottom of the quote in my last
> post.:-) I made sure that it was there just now as well even went as
> far as r
Pretty big WTF moment for me to debug what went wrong, eventually
discovering DJango's |date:"U" tempate filter is nonsense. It renders
to bogus values. Eventually found this:
http://tinyurl.com/rbop9g
Using 1.0. Has this been fixed?
--~--~-~--~~~---~--~~
You rece
On Thu, May 14, 2009 at 3:20 PM, Mr. T wrote:
>
> Pretty big WTF moment for me to debug what went wrong, eventually
> discovering DJango's |date:"U" tempate filter is nonsense. It renders
> to bogus values. Eventually found this:
>
> http://tinyurl.com/rbop9g
>
> Using 1.0. Has this been fixed?
>
Thanks!
On May 14, 1:28 pm, Alex Gaynor wrote:
> On Thu, May 14, 2009 at 3:20 PM, Mr. T wrote:
>
> > Pretty big WTF moment for me to debug what went wrong, eventually
> > discovering DJango's |date:"U" tempate filter is nonsense. It renders
> > to bogus values. Eventually found this:
>
> >http:
On Tuesday 12 May 2009 21:28:35 Alex Gaynor wrote:
> On Tue, May 12, 2009 at 3:27 PM, Tim Sawyer wrote:
> > ValueError: I/O operation on closed file
>
> This is probably a symptom of http://code.djangoproject.com/ticket/11084 .
>
Thanks Alex.
I've just updated to 10784 (without a fix for that bu
On May 14, 8:19 pm, online wrote:
> Hi all,
>
> I have a small project still under development. I don't set any cache
> stuff yet. But for somehow django still cache all web pages.
>
> Why django default uses cache? How can i disable the all level
> caches?
>
> I tried
>
> from django.views.deco
You may still be able to use the built-in django-comments, as it's
easy to customize (especially if your just adding extra fields). You
can read about it here:
http://docs.djangoproject.com/en/dev/ref/contrib/comments/custom/#ref-contrib-comments-custom
Gene
On May 14, 12:59 pm, Oleg Oltar wro
hello everyone!
I'm trying to make application in wich you will search some product
and for
response my application will list you products from other pages(for
example
amazon or some e-shop).. I want to do it with web service and I have
no idea
where to start..does someone know how to do it? Or
Are you sure it isn't your browser? have you tried testing your
concern with curl?
On May 14, 12:19 pm, online wrote:
> Hi all,
>
> I have a small project still under development. I don't set any cache
> stuff yet. But for somehow django still cache all web pages.
>
> Why django default uses ca
Hi,
I'm working with Django since a few weeks and I really *love* it!
I came across a problem I didn't find any help so I thought it might
be a good idea to ask the pros.
I need to model persons and each person should have a list of other
persons (a 'collaborates-with'-property).
I have to sav
On Thu, May 14, 2009 at 4:06 PM, Mike Driscoll wrote:
>
> Hi,
>
> I am working my way through the Django 1.0 book by Ayman Hourieh from
> Packt and I just reached the Admin Interface chapter (which is number
> 8 if you have the book). Anyway, when I login to my site's admin, I'm
> told that I don
Is there a way to limit admin login to superusers? I'd like to set up
multiple admin areas -- one for regular users and one for superusers.
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
On Thu, May 14, 2009 at 8:46 AM, bsisco wrote:
>
> Ok. I updated to the latest trunk release this morning and now when I
> run django-admin.py startapp I get the following: (specs:
> Python 2.5, Win XP Pro, Django trunk release 10781)
>
What did you update from? How did you update? Where did
On Thu, May 14, 2009 at 6:20 PM, Karen Tracey wrote:
> Nothing that does from django.whatever will match, since Python will then
> be looking for
Nothing that does 'from django.whatever import something'
is what I meant to type there.
--~--~-~--~~~---~--~~
You
On Thu, May 14, 2009 at 5:20 PM, lperk wrote:
>
> hello everyone!
>
> I'm trying to make application in wich you will search some product
> and for
> response my application will list you products from other pages(for
> example
> amazon or some e-shop).. I want to do it with web service and I ha
On Thu, May 14, 2009 at 6:10 PM, ringemup wrote:
>
> Is there a way to limit admin login to superusers? I'd like to set up
> multiple admin areas -- one for regular users and one for superusers.
>
> Thanks!
You can subclass the AdminSite Class and just overide the has_permission
function to re
Thanks, that looks like a good place to start.
I'm literally setting up two separate admin sites -- I need to prevent
the "staff" from even accessing the site for the superusers, as it
presents a lot of options I don't want to even be visible to them,
displays different inlines, etc.
On May 14
I'm running into a problem with the save() method in which I need
Django to update items in Model_B when an item from Model_A is saved.
The problem is that I save Model_A but Model_B is not updated.
However, if I save Model_A a second time (without changing anything)
then Model_B is updated.
Here
Have you found a solution for this? I'm surprised no one has at least
responded that it is or is not possible.
On Apr 9, 1:09 pm, Nicky Bulthuis wrote:
> Hello Django Users,
>
> I'm trying to learn Django as best as i can, however i've come to
> problem which i hope someone can help me with.
>
On May 14, 11:08 pm, Valery wrote:
> By the way, regarding the 30 func calls per HTTP request you'd mean
> it is a bare conflict WSGI vs mod_python?
That is likely to be a Django issue, you will have to explain that one
better and maybe someone else can help.
Graham
--~--~-~--~~--
Sorry for the length of this - I hope someone knowledgable about ajax
has a minute to take a look, I've been working on it for awhile.
George - if you are reading this - this is my attempt to do the jquery/
ajax that you recommended a few days back when I posted a more general
question.
Ok - here
I am working on this. I think it is not simple. The queryset for the
forms in the change_list view are created at a point in the code where
there is no info on what the actual object associated with that form
is. There is no simple way (ie, an arg or callback) to make a foreign
key field in the
Thanks for the redirection Erreon.
I will try it out. :-)
Best regards,
On May 15, 5:00 am, Erreon wrote:
> If you don't want to implement your own solution you could
> use.http://code.google.com/p/django-gravatar/
>
> On May 14, 6:30 am, Joshua Partogi wrote:
>
> > Dear all
>
> > Does anybo
Thanks Rama.
I will try this out too and I will see which one fits best. I didn't
know it was this simple :-)
Cheers.
On May 14, 11:08 pm, Rama Vadakattu wrote:
> Integrating with Gravatar is very easy
>
> 1) Get MD5 hash of user's email id
> import hashlib
>
> def getMD5(self):
>
This is my code
from django.http import HttpResponse
from django.template import Context, loader
from django.shortcuts import render_to_response
from django.views.decorators.cache import cache_control
@cache_control(no_cache=True)
def index(request):
#t = loader.get_template('home.html')
On Thu, May 14, 2009 at 6:53 PM, online wrote:
>
> This is my code
>
>
> from django.http import HttpResponse
> from django.template import Context, loader
> from django.shortcuts import render_to_response
> from django.views.decorators.cache import cache_control
> @cache_control(no_cache=True)
>
On Thu, May 14, 2009 at 9:53 PM, online wrote:
>
> Whatever i changed 'home.html' to other page i always get the same
> result.
Are you restarting your serving? If by "changed home.html to other
page" you mean you modified your view function to return a different
template, then make sure you re
Hi;
The site I'm working on will have two groups of users, the public and
staff. The 404.html page that the public sees needs to look different
than what the staff will see. Primarily because the staff is stuck
with the look and feel that I come up with, but the public side will
be skinned to mat
On Thu, May 14, 2009 at 10:56 PM, Lee Hinde wrote:
> Because I would be using different base.html files, I'm wondering if
> there is a work around to having a single 404.html file. For instance,
> can I determine at run time where to find my base.html file?
Write a view which chooses and uses th
Thanks, this kind of design is interesting, not what i expected
though.
I thought the server is running whatever my script i want to use
return render_to_response('home.html')
or
return render_to_response('index.html')
On May 14, 7:55 pm, David Zhou wrote:
> On Thu, May 14, 2009 at 9:
On Thu, May 14, 2009 at 5:26 PM, Margie wrote:
>
> Sorry for the length of this - I hope someone knowledgable about ajax
> has a minute to take a look, I've been working on it for awhile.
> George - if you are reading this - this is my attempt to do the jquery/
> ajax that you recommended a few d
Thanks for your shearing a good knowledge.
I'll do it.
Veasna,
On Thu, May 14, 2009 at 9:42 PM, zayatzz wrote:
>
> Im also a django beginner, but i have bit more advanced knowledge
> about js/jquery
>
> Here's what ive learned so far: All js events happen in browser and
> are all related/attac
Hi,
Please give me pointers on how to debug this.
Basic form error:
"Upload a valid image. The file you uploaded was either not an image
or a corrupted image."
I have googled around and the problems I have read regards recompiling
jpeg for MAC after installing PIL. I have Windows, and so I be
I found a very good tutorial at
http://lethain.com/entry/2008/sep/21/intro-to-unintrusive-javascript-with-django/.
I've just gone through it and it is really simple and helpful if you
have little/no familiarity with ajax.
Margie
On May 14, 10:08 pm, veasna bunhor wrote:
> Thanks for your sheari
Hi all,
I've recently encountered a problem that arose with revision 10756.
Say you have the following models:
class Person(models.Model):
name = models.CharField(max_length=20)
class Student(Person):
grad_year = models.IntegerField()
class Picture(models.Model):
image = models.Ima
Thanks Colin. I will try that. I also found a tutorial at
http://lethain.com/entry/2008/sep/21/intro-to-unintrusive-javascript-with-django/
that does some basic ajax stuff and that's useful to just get familiar
with the paradigm. Been studying this stuff all day, am too bleary
eyed to go any fu
Hi,
I solved it that way:
class PersonCollaboration(models.Model):
person1 = models.ForeignKey('Person', related_name='person1')
person2 = models.ForeignKey('Person', related_name='person2')
timestamp_created = models.DateTimeField(default=datetime.now)
class Person (mod
On Fri, May 15, 2009 at 2:21 PM, Michael Strickland wrote:
>
> Hi all,
>
> I've recently encountered a problem that arose with revision 10756.
> Say you have the following models:
>
> class Person(models.Model):
> name = models.CharField(max_length=20)
>
> class Student(Person):
> grad_year
93 matches
Mail list logo