On Thursday 14 April 2011 12:53:19 grimmus wrote:
> Hi,
> 
> I am interested in extending the User object and implementing
> functionality that determines how complete the users profile is.
> 
> So, if they have filled in 5 of 10 fields the profile is 50% complete.
> But, some fields are more important than others so i was thinking of
> weighting each field (a weight of 1 add's 10% to the profile
> completeness and a weight of 3 adds 5%).
> 
> Has anyone tried to implement something similar to this using Django
> or another framework ?
> 
> Thank you for any advice/tips.

You're overthinking it.

You only need to define weight as directly proportional to importness of field, 
like as:

0 means "not significant at all", and for example 10 means "very significant". 
And values between 0 and 10 something between that.

Then just do simple percentage calculation:

(all weights summed / filled fields wegihts summed) * 100 = percentage of 
completeness...

-- 

Jani Tiainen

-- 
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