Question: I would like to format a time duration (e.g. in seconds) in a String which would contain the localized names of time units. For example for input 8692 I would get string "2 h 24 min 52 sec" with the time units correctly localized for each language. Is there some class in Android that could do this? Does anyone know some external opensource library for this? Thank you.

Answer: 
This line is wrong:

```
post_save.connect(notify_after_registration(sender), sender=User)

```

you should not call your receiver function here when you are connecting it

you should do:

```
post_save.connect(notify_after_registration, sender=User)

```

`post_save` is a built-in Django signal so it will be sent automatically with the `sender` arg.

It's all in the docs:  

<https://docs.djangoproject.com/en/1.8/topics/signals/#receiver-functions>
You can pass the arguments as keyword arguments (`kwargs`) as `activation_key=...`, `username=...` and so on. The receiver takes them in the `kwargs`: `kwargs['activation_key']`, `kwargs['username']`.

Reference: [Django docs: Signals](https://docs.djangoproject.com/en/1.8/topics/signals/#receiver-functions).

EDIT: You do not call the function explicitly. You trigger the signal with the keywords whenever it is necessary and meaningful (after all it is a custom signal), and the framework calls the appropriate receivers passing the arguments appropriately.