﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11985	not generating all fields	maciejplonski	nobody	"hi,

got model:


{{{
class user(models.Model):
    username = models.CharField('login', max_length=30, unique=True)
    first_name = models.CharField('imie', max_length=30, blank=True)
    last_name = models.CharField('nazwisko', max_length=30, blank=True)
    email = models.EmailField('e-mail', blank=True)
    public_email = models.BooleanField('pokazac e-mail publicznie?', default=False)
    password = models.CharField('password', max_length=128)
    is_active = models.BooleanField(default=False)
    is_mod = models.BooleanField(default=False)
    last_login = models.DateTimeField('ostatnio zalogowany', default=datetime.datetime.now)
    date_joined = models.DateTimeField('data rejestracji', default=datetime.datetime.now)
}}}

but after generating tables in sql, there is no 'is_mod' and 'is_active' field in the table with users, but field 'public_email' exists in the database

to be more complicated, I've got also another model in this app:

{{{
class group(models.Model):
    name = models.CharField('nazwa', max_length=80, unique=True)
    is_mod = models.BooleanField('jest moderatorem', default = False)
}}}

and in the table with groups, field 'is_mod' exists

sqlall is giving:

{{{
BEGIN;
CREATE TABLE `users_fgroup` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `name` varchar(80) NOT NULL UNIQUE,
    `is_mod` bool NOT NULL
)
;
CREATE TABLE `users_fuser` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `username` varchar(30) NOT NULL UNIQUE,
    `first_name` varchar(30) NOT NULL,
    `last_name` varchar(30) NOT NULL,
    `email` varchar(75) NOT NULL,
    `public_email` bool NOT NULL,
    `password` varchar(128) NOT NULL,
    `last_login` datetime NOT NULL,
    `date_joined` datetime NOT NULL
)
;
COMMIT;
}}}"		closed	Uncategorized	1.1		worksforme	orm		Unreviewed	0	0	0	0	0	0
