On Oct 6, 2:56 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > Does that field need to be unique on its own?
Yes it does. And I also don't want the clients of this model to know that they could be accessing the model's ID when they access the field in question. I suppose what I could do is have the field be either NULL or a unique value. If the field is NULL, I can return the model ID instead when I need to access that field. However, this is a string field I'm working with so it'll normally get set to an empty string if I don't give it a value. Could I just set the field to NULL (None) in the model's save() method whenever it's an empty string? --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---