mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #2443 -- Allowed creation of objects with NULL DurationFields
This commit is contained in:
parent
5a4ac4ead9
commit
ee86e59051
3 changed files with 12 additions and 1 deletions
|
@ -129,6 +129,10 @@ class DurationModel(models.Model):
|
|||
field = models.DurationField()
|
||||
|
||||
|
||||
class NullDurationModel(models.Model):
|
||||
field = models.DurationField(null=True)
|
||||
|
||||
|
||||
class PrimaryKeyCharModel(models.Model):
|
||||
string = models.CharField(max_length=10, primary_key=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue