Hi Emanuele,
To force a user to make a choice wrt boolean fields, you have two
options: a BooleanField or (as you seem to be looking for) a
NullBooleanField, which actually represents three states (including
'unselected'). This will mirror what you are trying to achieve with the
CharField
Hello tonemcd!
On Thu, 08 Dec 2005 07:07:41 -0800 you wrote:
>
> What does your auth model look like?
>
class User(auth.User):
user_id = meta.CharField(maxlength=12, primary_key=True)
user_active = meta.BooleanField(default=True)
username = meta.CharField(maxlength=25)
On 12/9/05, braver <[EMAIL PROTECTED]> wrote:
> unique_together = (("key","date",...),)
>
> Is it the way? It creates proper SQL. What about indexes on several
> columns?
Yes, that's the way to do multiple unique fields. There's no way to do
indexes across several columns -- you can do
3 matches
Mail list logo