I am a newbie and this question is sort of related to a question I asked not so long ago.
I have a select list as part of a form stored in my models.py file as a positiveintegerfield, as shown below: class AchievementDetails(models.Model, FillableModelWithLanguageVersion): SELECT_ACHIEVEMENT_TYPE = 0 ACADEMIC_ACHIEVEMENT = 1 COMMERCIAL_ACHIEVEMENT = 2 PERSONAL_ACHIEVEMENT = 3 PROFESSIONAL_ACHIEVEMENT = 4 SPORTING_ACHIEVEMENT = 5 OTHER_ACHIEVEMENT_TYPE = 6 ACHIEVEMENT_TYPES = ( (SELECT_ACHIEVEMENT_TYPE, _('Select Type')), (ACADEMIC_ACHIEVEMENT, _('Academic Achievement')), (COMMERCIAL_ACHIEVEMENT, _('Commercial Achievement')), (PERSONAL_ACHIEVEMENT, _('Personal Achievement')), (PROFESSIONAL_ACHIEVEMENT, _('Professional Achievement')), (SPORTING_ACHIEVEMENT, _('Sporting Achievement')), (OTHER_ACHIEVEMENT_TYPE, _('Other Achievement Type')) ) .... achievement_type = models.PositiveIntegerField(choices=ACHIEVEMENT_TYPES, default=SELECT_ACHIEVEMENT_TYPE, validators=[MinValueValidator(1)]) .... In my edit template I would like to remove the *(SELECT_ACHIEVEMENT_TYPE, _('Select Type')),* option from the actual select list that is displayed to the user, but dsiplay the value when the add template is displayed to the user. I have read that I can use val.pop(0), but I am really uncertain as to how I can apply this to the edit details of my views.py file, or even if I should be using val.pop(0). Is someone able to direct me to the relevant reference in the django docs? As I have been unable to find the reference when I read & searched in the docs myself. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/92b5a89f-71be-4d43-8cb5-7f4356045c7a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.