My Location model has a unique filed called **name**. Through LocationForm I get user input and try to either insert it into the database or get the axisting object. But if user inputs an existing name, lf.is\_valid() becomes False and I never get to the get\_or\_create command. Any idea how I can pass this? 

```
lf = LocationForm(request.POST or None)
if lf.is_valid():
    location_instance, created = Location.objects.get_or_create(**lf.cleaned_data)

```

Thanks,