Assume we have class Employee. I want to have a field which references a different instance of the same class.
Employee
How to write this? How about the followi
A constraint forcing id and ref_employee_id to have separate values is outside the scope of Django's ORM. You will need to add said constraint at the database level, via SQL in syncdb or manually.
id
ref_employee_id