This will be used to allow users to edit their own contributor records.
Requires SQL:
ALTER TABLE contributors_contributor add column "user_id" integer REFERENCES "auth_user" ("id") DEFERRABLE INITIALLY DEFERRED;
CREATE INDEX "contributors_contributor_user_id" ON "contributors_contributor" ("user_id");
UPDATE contributors_contributor set user_id=(select id from auth_user where auth_user.email=contributors_contributor.email) where contributors_contributor.email is not null;
from django.db import models
+from django.contrib.auth.models import User
from pgweb.util.bases import PgModel
companyurl = models.URLField(max_length=100, null=True, blank=True)
location = models.CharField(max_length=100, null=True, blank=True)
contribution = models.TextField(null=True, blank=True)
+ user = models.ForeignKey(User, null=True, blank=True)
purge_urls = ('/community/contributors/', )