On Nov 29, 2005, at 10:26 PM, Adrian Holovaty wrote:
class META:
db_table = 'anastas_users'
replaces_module = 'auth.users'
admin = meta.Admin()
# field names to remove from parent model
remove_fields = ['password', 'is_
Hello Adrian Holovaty!
On Tue, 29 Nov 2005 08:26:11 -0600 you wrote:
> To "remove" fields in the parent class, use "remove_fields". For
> example:
[...]
>class META:
>db_table = 'anastas_users'
>replaces_module = 'auth.use
ta.IntegerField()
user_lastvisit = meta.IntegerField()
user_regdate = meta.IntegerField()
user_level = meta.CharField(maxlength=4)
user_posts = meta.IntegerField()
[...]
class META:
db_table = 'anastas_users'
replaces_module = 'auth.users'
admin = meta.A
()
[...]
class META:
db_table = 'anastas_users'
replaces_module = 'auth.users'
admin = meta.Admin()
as you see, lots of fields have the same fields from auth.users table.
How to escape double of fields, and auth can work like in forum and in
d
4 matches
Mail list logo