I have PositiveIntegerField in my model, that represents unique, new number of newly added element (it's newspaper no.). It must be editable in admin form. Now i would to assign a default value to the next available integer, so person, who will be adding new element, have that field autopopulated.

What is best way to do that?
Can i assign callable function to 'default ' value, that will query for highest used integer?

Mind that it needs to be editable, because first used value is unknown, and some values might be skipped.

--
Linux user

--
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