Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple profiles #6

Open
ycchan opened this issue Jul 6, 2011 · 2 comments
Open

Multiple profiles #6

ycchan opened this issue Jul 6, 2011 · 2 comments

Comments

@ycchan
Copy link

ycchan commented Jul 6, 2011

I am trying to use idios with multiple profiles but I don't see how I can create different profiles when creating a new user.

idios/model.py:60 registers the function create_profile with the post_save signal but create_profile creates a profile without any profile_slug passed in.

Does it mean that I can't create a user and a non-default profile at the same time?

@turian
Copy link

turian commented Oct 29, 2011

I too am interested in this.

@mattions
Copy link
Contributor

Check out the docs: http://oss.eldarion.com/idios/docs/0.1/gettingstarted.html#usage

You have to create a ghost app, with amodels file and class inside
for example, if you call it profiles/models.py

# profiles/models.py

from django.db import models

from idios.models import ProfileBase


class Profile(ProfileBase):

    name = models.CharField(max_length=100)
    phone_number = models.CharField(max_length=20)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants