title: Django Admin - Prevent Inline Showing When Adding a New Object
body: <p>I have two one-to-one related models in Django. Simplified version as follows:</p>
  <pre><code>class User(models.Model):
      name = models.CharField(max_length=40)
  
  class Profile(models.Model):
      age = models.IntegerField()
      user = models.OneToOneField(User, on_delete=models.CASCADE)
  </code></pre>
  <p>I have used signals to automatically create a profile automatically when a new user is created.</p>
  <p>I have also created a ProfileInline and included it in my UserAdmin as follows:</p>
  <pre><code>class ProfileInline(admin.TabularInline):
      model = Profile
      can_delete = False
  
  class UserAdmin(admin.ModelAdmin):
      list_display = ('name',)
      inlines = [ProfileInline,]
  </code></pre>
  <p>The problem I am facing is that when a new User is being created in the admin module, and the person creating the new user also populates the field for the inline on the same page, an error is generated while saving because both the signals module and the admin are trying to create a new Profile.</p>
  <p>Is there any way to prevent the ProfileInline from showing in the UserAdmin when adding a new User?</p>
  <p>Thanks.</p>