Hi all, I'm completely new to Django but it seems pretty good so far and I like the design philosophy behind it.
I'm going through the poll application tutorial ( http://docs.djangoproject.com/en/dev/intro/tutorial01/) and I want to change the Poll class such that it will have a new attribute, let's call it uniqueID. I want uniqueID to be, well unique, and to consist of a random string of 16 alphanumeric characters. When I go to the admin page, I can add a Poll by entering the poll question and date. I would like it to be such that when I add a new poll by entering the question and date, besides the autoincremented ID which is the primary key of the poll, I would also like the uniqueID string to be written to the database and before I do that, I would like to check that there is no similar uniqueID in the database before I assign it to the new Poll. Additionally, I'd like to add an email field to the Poll class, and send an email with the uniqueID to the provided email every time a Poll is added. but alas, I'm not able to do that. Can someone please give me pointers on how I should proceed? My Django version is 1.0.2 and I'm using mysql for my db. Cheers, Andreas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

