mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #30044 -- Raised a FieldError on inherited field update attempts.
This commit is contained in:
committed by
Tim Graham
parent
4fc35a9c3e
commit
9e5e5a657b
@@ -15,6 +15,10 @@ class Employee(models.Model):
|
||||
return '%s %s' % (self.firstname, self.lastname)
|
||||
|
||||
|
||||
class RemoteEmployee(Employee):
|
||||
adjusted_salary = models.IntegerField()
|
||||
|
||||
|
||||
class Company(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
num_employees = models.PositiveIntegerField()
|
||||
|
||||
Reference in New Issue
Block a user