mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #21286 -- Removed invalid commented out models and tests from serializer tests.
FileField/ImageField cannot be primary keys, so serialization support
for this case will not be implemented.
XMLField was removed in d1290b5b43.
This commit is contained in:
committed by
Mariusz Felisiak
parent
838659ea21
commit
3d4fe39bac
@@ -210,10 +210,6 @@ class EmailPKData(models.Model):
|
||||
data = models.EmailField(primary_key=True)
|
||||
|
||||
|
||||
# class FilePKData(models.Model):
|
||||
# data = models.FileField(primary_key=True)
|
||||
|
||||
|
||||
class FilePathPKData(models.Model):
|
||||
data = models.FilePathField(primary_key=True)
|
||||
|
||||
@@ -226,10 +222,6 @@ class IntegerPKData(models.Model):
|
||||
data = models.IntegerField(primary_key=True)
|
||||
|
||||
|
||||
# class ImagePKData(models.Model):
|
||||
# data = models.ImageField(primary_key=True)
|
||||
|
||||
|
||||
class GenericIPAddressPKData(models.Model):
|
||||
data = models.GenericIPAddressField(primary_key=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user