Re: replaces_module

2005-11-29 Thread Cheng Zhang
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_

Re: replaces_module

2005-11-29 Thread Grigory Fateyev
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

Re: replaces_module

2005-11-29 Thread Adrian Holovaty
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

replaces_module

2005-11-29 Thread Grigory Fateyev
() [...] 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