Closed vdboor closed 13 years ago
I can't reproduce that error. When I visit your Django Packages page (http://djangopackages.com/profiles/profile/vdboor/) I can't generate the problem. Can you link to the page that is showing this issue?
I've changed my bitbucket account from "-" back to "", and now you can see it:
Problem is that the default value 'null' in the Profile fields is replaced by an empty string at the first edit form the user. (note that a null=True on a char field is a bad idea - refer to the django doc)
Empty values should be better managed.
But for a quick repair, in apps / profiles / models.py : change bitbucket_regex = r'^%s,|,%s,|%s$' % (name, name, name) to bitbucket_regex = r'^%s,|,%s,|,%s$' % (name, name, name)
and change github_regex = r'^%s,|,%s,|%s$' % (name, name, name) to github_regex = r'^%s,|,%s,|,%s$' % (name, name, name)
(add a ',' before the $)
Done!
When the bitbucket account is empty, my profile displays a long list of packages, suggesting I've written those.