remove added by on script form, fix script template if license not provided, make email field for person non-unique

This commit is contained in:
Sanjay B 2015-08-01 16:03:04 +05:30
parent 1a43303123
commit a611b6721c
3 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,7 @@ class Person(ItfModel):
user = models.OneToOneField(User, blank=True, null=True, db_index=True)
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
email = models.EmailField(blank=True, null=True, unique=True, db_index=True, help_text="Your email address will be kept confidential and will not be displayed on your profile page")
email = models.EmailField(blank=True, null=True, db_index=True, help_text="Your email address will be kept confidential and will not be displayed on your profile page")
tel_no = models.CharField(max_length=100, blank=True, verbose_name='Telephone number')
is_practitioner = models.BooleanField(default=False, verbose_name='Are you a theatre practitioner?', help_text="A 'theatre practitioner' refers to anyone actively involved in the process of production, ranging from the actors, to light designers, music directors, production, backstage, and so on")
is_freelancer = models.BooleanField(default=False, verbose_name='Are you a theatre associate?', help_text="By 'theatre associate' we mean anyone who works within the field of theatre, but may not be involved in particular productions: for instance: managers of theatre institutions, scholars, journalists, teachers, curators and so on") #Change to is_associate

View File

@ -22,7 +22,7 @@ class ScriptForm(ItfForm):
class Meta:
model = Script
exclude = ('added_by', 'related_scripts')
exclude = ('added_by', 'related_scripts',)
widgets = {
'no_characters': forms.NumberInput,
'no_of_women': forms.NumberInput,

View File

@ -47,6 +47,7 @@ $(function() {
<br />
{% if license_adapt.legal_file and license_perform.legal_file %}
<h5 class="orangeInnerRight">Licenses:</h5>
<p>This script may be accessed
@ -67,7 +68,7 @@ $(function() {
<p>{{ license_perform.short_description|linebreaksbr }} </p>
<a href="{{ license_perform.legal_file.url }}" target="_blank" class="block">Read legal version</a>
</div>
{% endif %}
<br><br>
{% if script_file %}