Hello Sachin,
I don't mean to be rude but Is this a question?
Your question is vague. You need to be specific about what you want to do. Let us see what you have tried and let us see the stack trace of any error.
Otherwise, your question seems like "hi, I want to build a car".
When you put in the details i can assure you that answers will start flying in.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8acd0f1e-eb98-46fa-a6b0-3fd0dd7abb4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8acd0f1e-eb98-46fa-a6b0-3fd0dd7abb4c%40googlegroups.com.
from django.contrib.auth.models import User class Employee(models.Model): user = models.OneToOneField(User) phone_no = models.IntegerField(max_length=10)
This code in admin.py
class EmployeeInline(admin.StackedInline): model = Employee can_delete = False verbose_name_plural = 'phon_no' # Define a new User admin class UserAdmin(UserAdmin): inlines = (EmployeeInline, ) # Re-register UserAdmin admin.site.unregister(User) admin.site.register(User, UserAdmin)