I am using a form to capture user entered values of urls to websites.I
need to create a model with
fields
1.url-charfield
2.creator_of_entry-foreignkey(User)
I am taking the creator as the logged in user,and can get his name.
I need to restrict the user from entering the same url again.How do I
do that?I was thinking of specifying creator_of_entry.username+url as
unique.How do I do this in django?
Also,there is the case of 2 different people with same name.I would
very much like some pointers as to how this can be tackled.If someone
can advise ,please do
thanks,
mark
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment