Hi all,

I have a flow which I am not sure how to design with maximum reuse of
existing apps/features.

Flow :-
1) A non registered user comes and uploads his profile - (NOTE - there
is no user sign up form,only profile upload form).
2) Admin comes , approves the profile, edits it if he wants and then
assign it a profile id. Activates the profile.
3) Upon activation a mail is sent to the user (email id is provided in
the profile), with his profile id(which will be his username) and a
random password which he can change from site.


Additional Requirement :-
a) User wants to change his profile information, he edits it and saves
it but his profile information is not yet changed.
b) Changes should go to admin, if he approves the changes then new
profile information is saved, else he can reject the changes.


I am not sure how to do this especially the editing profile part.

My first attempt is like this:
a) create profile model and use generic create_update view to upload
the profile. Add a field of is_active.
b) Admin filters on basis of is_active and assigns them a profile_id.
c) Admin then goes on to create a user with that profile id as the
username and a FIXED password e.g. "changeit".
d) Admin then goes to the profile and then associates the profile with
the user.

Things that I am trying to figure are :
a) how to send the mail with credentials ? Can I use signals ?
b) how to make sure that in this process some user is not missing his
profile and some profile is not activated and still missing user? Can
I make some sort of filter in admin for this?
c) How to allow the editing of profile to be monitored by admin?


I am open for completely new flow :- only unchangeable requirements
are:
1. user can login only after admin has approved his profile and he
must be sent a mail once approved.
2. new profile of user can be saved only after approval by admin.

Sorry for the long mail.

Regards
Ajay

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to