I have this simple django model consisting of an sensor and values for the specific sensor.
The number of values per Pyranometer is high (>30k). Is it somehow possible to paginate PyranometerValues
by a specific day or generell apply a paginator to the admin inline view?
JavaScript
x
8
1
class Pyranometer(models.Model):
2
name = models.CharField(max_length=75)
3
4
class PyranometerValues(models.Model):
5
timestamp = models.DateTimeField()
6
value = models.DecimalField(max_digits=10,decimal_places=6)
7
sensor = models.ForeignKey('Pyranometer')
8
Advertisement
Answer
Have you checked raw_id_fields attribute? I think you might find it useful.