Files
postgres-web/pgweb/account/models.py
Magnus Hagander f1ee1f4d72 Add a help text to communtity auth title
I keep forgetting that it's end-user-visible myself, so I'm sure others
using it in the future could be equally confused :-)
2012-06-03 12:26:33 +02:00

13 lines
570 B
Python

from django.db import models
class CommunityAuthSite(models.Model):
name = models.CharField(max_length=100, null=False, blank=False,
help_text="Note that the value in this field is shown on the login page, so make sure it's user-friendly!")
redirecturl = models.URLField(max_length=200, null=False, blank=False)
cryptkey = models.CharField(max_length=100, null=False, blank=False,
help_text="Use tools/communityauth/generate_cryptkey.py to create a key")
comment = models.TextField(null=False, blank=True)
def __unicode__(self):
return self.name