mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26608 -- Added support for window expressions (OVER clause).
Thanks Josh Smeaton, Mariusz Felisiak, Sergey Fedoseev, Simon Charettes, Adam Chainz/Johnson and Tim Graham for comments and reviews and Jamie Cockburn for initial patch.
This commit is contained in:
11
tests/expressions_window/models.py
Normal file
11
tests/expressions_window/models.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Employee(models.Model):
|
||||
name = models.CharField(max_length=40, blank=False, null=False)
|
||||
salary = models.PositiveIntegerField()
|
||||
department = models.CharField(max_length=40, blank=False, null=False)
|
||||
hire_date = models.DateField(blank=False, null=False)
|
||||
|
||||
def __str__(self):
|
||||
return '{}, {}, {}, {}'.format(self.name, self.department, self.salary, self.hire_date)
|
||||
Reference in New Issue
Block a user