Hi Brian,
that works so far for displaying the correct choices in the admin
interface. But the problem now is the validation. He always tells me
that my choice is not a correct value.
I have been looking for a way to change validation but I can't figure
out how to do this...
Thanks for your help
HI, Artemis,
If I understand you correctly you want to use a Select Widget for your
CharField. And feed your choices to the select widget.
In your admin.py file of your app you will want to override the model's
form field.
# models.py
from django.db import models
myModel(models.Model):
pers
2 matches
Mail list logo