Re: Sorting by a nullable ForeignKey

2008-07-01 Thread Alex Rades
http://code.djangoproject.com/ticket/7582 On Tue, Jul 1, 2008 at 11:03 AM, Alex Rades <[EMAIL PROTECTED]> wrote: > Ok just tested and works. Lets open a ticket. > Thank you > > > On Tue, Jul 1, 2008 at 12:26 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > >> On Mon, Jun 30, 2008 at 5:51 PM, Alex

requiring fields in the admin page

2008-07-01 Thread keegan3d
Hey guys, I am trying to make a couple of fields required in the admin page for my app. I originally thought that core=True would do it but it makes all the fields required, even ones that I did not specify core=True for. After some further reading it seems like this is only used for fields that

Re: problem with models and foreign keys

2008-07-01 Thread Malcolm Tredinnick
On Tue, 2008-07-01 at 00:09 -0700, KevinTran wrote: > So that means that the tables are correct right? Yes, they're fine. It's just a subtle difference between what "manage.py sql ..." and "manage.py sqlall ..." prints out. When you run "manage.py syncdb", it will use the "sqlall" equivalent.

a thread problem or my bad codes?

2008-07-01 Thread pength
I am using Django0.96/apache2/mod_python(running prefork MPM) / mysql, for my Django project, a typical Django environment, I think. And usually there're more than 10 apache2 processes running on my site, as the online users is about 100+. I found a problem that sometimes if one user clicks a

User Authentication - index/base

2008-07-01 Thread Alfonso
Hey, I've implemented a user login widget on my site. A simple 'Sign in' at top of every page that turns into 'Welcome John, View your profile' following successful user authentication. Works great - only issue I'm having is that on home page the text reverts to 'Sign In' even when user is

testing login problem

2008-07-01 Thread laspal
Hi, I am writing the test case but I am getting errors. Test case is as follows: import unittest from django.test.client import Client from django.contrib.auth.models import User, Group from ibm.crm.models import Industry class IndustryTest(unittest.TestCase): def setUp(self):

Re: problem with models and foreign keys

2008-07-01 Thread KevinTran
So that means that the tables are correct right? Is there a way to control the order of the table creation? On Jul 1, 12:05 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Because the link table is created after the Bookmarks one that would > be a reference to a non-existant table, if you

Re: problem with models and foreign keys

2008-07-01 Thread [EMAIL PROTECTED]
Because the link table is created after the Bookmarks one that would be a reference to a non-existant table, if you use the sqlall command instead you will see that the tables are altered to add the constraint. On Jul 1, 1:57 am, KevinTran <[EMAIL PROTECTED]> wrote: > Hi I'm currently reading

problem with models and foreign keys

2008-07-01 Thread KevinTran
Hi I'm currently reading Learning Website Development with Django and I'm having a problem with models. Here is my models.py: from django.db import models from django.contrib.auth.models import User class Link(models.Model): url = models.URLField(unique=True) class

Re: Strange display of date

2008-07-01 Thread gumbah
Anyone? On Jun 27, 9:38 am, gumbah <[EMAIL PROTECTED]> wrote: > Hi all, > > does anyone know what i am doing wrong when i see adatelooking like > this in the "change history" part of the admin app: > > FriAMCDTE_261CDT02_CDT1JunE_June1218655750TrueTrue > > I see this throughout the admin app

Embedding template tags inside of Flatpages content?

2008-07-01 Thread PFL
Is there any way to type template tags into the admin form field for Flatpages content and have them interpreted as template tags (instead of text to display) ? IF this is possible, then the next question would be to define some python dictionaries inside the flatpage contentthis is all to

<    1   2