I think this can help you, it allows you to make choices for django
admin fields.

http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.Field.choices
http://www.djangoproject.com/documentation/models/choices/

-Francis

On Apr 12, 10:58 am, Daxal <daxal.someone...@gmail.com> wrote:
> Hey,
>
> I am wondering on how to populate list of items for a specific field
> on model from the admin section of Django?
>
> For ex,
>
> class  cvdb(models.Model):
> language = models.ManyToManyField(Language,
> db_table='cm_cvdb_language',
>                                     verbose_name="languages")
>
> I would like to populate "language" field options on the template.
> Please advise me on how to do this. I am new to Django...I looked up
> on forums outside of here but I cannot seem to find anything.
>
> Please advise.
>
> Thank you!!!!! (:  <3

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to