こんにちは、
AbstractBaseUserを継承してカスタムユーザーモデルを作りたいですが、
そのモデルを2種類作りたいです。
例えば、企業会員モテると個人会員モデルその2種類のユーザーモデルを使用したいですが、

1つ目の質問ですが、

models.pyに

class SupplierUser(AbstractBaseUser)と
class BuyerUser(AbstractBaseUser)を設定して

settings.pyに
AUTH_USER_MODEL = 'accounts.SupplierUser', 'accounts.BuyUser'を設定したら

AssertionError: ForeignKey(('accounts.SupplierUser', 'accounts.BuyUser')) 
is invalid. First parameter to ForeignKey must be either a model, a model 
name, or the string 'self' っていうエラーが発生しました。

この場合、どう解決すればいいでしょうか?


2つ目の質問ですが、

カスタムユーザーを使用する時のログイン、ログアウトの設定方法につして教えていただけると嬉しいです。

どうぞよろしくお願いいたします。

-- 
-----------------                       http://djangoproject.jp/                
         -----------------
You received this message because you are subscribed to the Google Groups 
"django-ja" group.
To post to this group, send email to django-ja@googlegroups.com
To unsubscribe from this group, send email to 
django-ja-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-ja
--- 
このメールは Google グループのグループ「django-ja」の登録者に送られています。
このグループから退会し、グループからのメールの配信を停止するには django-ja+unsubscr...@googlegroups.com 
にメールを送信してください。
このディスカッションをウェブ上で閲覧するには、https://groups.google.com/d/msgid/django-ja/6e73f2cc-a07c-4d7a-bae2-d1c4fc2e452c%40googlegroups.com
 にアクセスしてください。
その他のオプションについては、https://groups.google.com/d/optout にアクセスしてください。

メールによる返信