# Integrity Error- Django - Part -2 \_Signals

**URL:** <https://forum.codewithmosh.com/t/integrity-error-django-part-2-signals/18197>\
**Category:** Django\
**Created:** [February 12, 2023, 7:07pm UTC](https://forum.codewithmosh.com/t/integrity-error-django-part-2-signals/18197 "2023-02-12T19:07:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinodh](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@Vinodh](https://forum.codewithmosh.com/u/Vinodh)\
**Post date:** [February 12, 2023, 7:07pm UTC](https://forum.codewithmosh.com/t/integrity-error-django-part-2-signals/18197/1 "2023-02-12T19:07:15Z")

</div>

I am watching the Django series - Part -2 - Signals- Lesson 11 which is at the end of Designing and building the Orders API. After adding “post\_save” by creating a signals file in the store app, I am unable to add a new user as shown in the video. I did everything as shown in the video, but I am getting an integrity error while adding a new user to the admin page. Please help me out.

Error:

# IntegrityError at /admin/core/user/add/

(1062, “Duplicate entry ‘’ for key ‘store\_customer.email’”)

| Request Method: | POST |
| --- | --- |

|Django Version:|4.1.6|  
|Exception Type:|IntegrityError|  
|Exception Value:|(1062, “Duplicate entry ‘’ for key ‘store\_customer.email’”)|  
|Raised during:|django.contrib.auth.admin.add\_view|

---

<div class="post-metadata">

**Author:** ![tooTALLtim](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/tootalltim/32/5469_2.png) [@tooTALLtim](https://forum.codewithmosh.com/u/tooTALLtim)\
**Post date:** [February 17, 2023, 2:17am UTC](https://forum.codewithmosh.com/t/integrity-error-django-part-2-signals/18197/2 "2023-02-17T02:17:21Z")

</div>

Are you adding a new customer, but using the same email as an existing customer? You can check it out in DataGrip.
