# Path: modeltranslation/manager.py
# class MultilingualManager(MultilingualQuerysetManager):
#     def rewrite(self, *args, **kwargs):
#         return self.get_queryset().rewrite(*args, **kwargs)
# 
#     def populate(self, *args, **kwargs):
#         return self.get_queryset().populate(*args, **kwargs)
# 
#     def raw_values(self, *args, **kwargs):
#         return self.get_queryset().raw_values(*args, **kwargs)
# 
#     def get_queryset(self):
#         """
#         This method is repeated because some managers that don't use super() or alter queryset class
#         may return queryset that is not subclass of MultilingualQuerySet.
#         """
#         qs = super(MultilingualManager, self).get_queryset()
#         if isinstance(qs, MultilingualQuerySet):
#             # Is already patched by MultilingualQuerysetManager - in most of the cases
#             # when custom managers use super() properly in get_queryset.
#             return qs
#         return self._patch_queryset(qs)


import six
from django.conf import settings
from django.core import validators
from django.db import models
from django.utils.translation import gettext_lazy
from modeltranslation.manager import MultilingualManager
    from django.contrib.auth.models import Permission
class DataModel(models.Model):
    data = models.TextField(blank=True, null=True)


class GroupFieldsetsModel(models.Model):
    title = models.CharField(max_length=255)
    text = models.TextField(blank=True, null=True)
    email = models.EmailField(blank=True, null=True)


class NameModel(models.Model):
    firstname = models.CharField(max_length=50)
    lastname = models.CharField(max_length=50)
    age = models.CharField(max_length=50)
    slug = models.SlugField(max_length=100)
    slug2 = models.SlugField(max_length=100)


# ######### Integration testing


class ThirdPartyModel(models.Model):
    name = models.CharField(max_length=20)


class ThirdPartyRegisteredModel(models.Model):
    name = models.CharField(max_length=20)


# ######### Manager testing

# Path: modeltranslation/manager.py
# class MultilingualManager(MultilingualQuerysetManager):
#     def rewrite(self, *args, **kwargs):
#         return self.get_queryset().rewrite(*args, **kwargs)
# 
#     def populate(self, *args, **kwargs):
#         return self.get_queryset().populate(*args, **kwargs)
# 
#     def raw_values(self, *args, **kwargs):
#         return self.get_queryset().raw_values(*args, **kwargs)
# 
#     def get_queryset(self):
#         """
#         This method is repeated because some managers that don't use super() or alter queryset class
#         may return queryset that is not subclass of MultilingualQuerySet.
#         """
#         qs = super(MultilingualManager, self).get_queryset()
#         if isinstance(qs, MultilingualQuerySet):
#             # Is already patched by MultilingualQuerysetManager - in most of the cases
#             # when custom managers use super() properly in get_queryset.
#             return qs
#         return self._patch_queryset(qs)


# Path: modeltranslation/tests/models.py
import six
from django.conf import settings
from django.core import validators
from django.db import models
from django.utils.translation import gettext_lazy
from modeltranslation.manager import MultilingualManager
    from django.contrib.auth.models import Permission

class DataModel(models.Model):
    data = models.TextField(blank=True, null=True)


class GroupFieldsetsModel(models.Model):
    title = models.CharField(max_length=255)
    text = models.TextField(blank=True, null=True)
    email = models.EmailField(blank=True, null=True)


class NameModel(models.Model):
    firstname = models.CharField(max_length=50)
    lastname = models.CharField(max_length=50)
    age = models.CharField(max_length=50)
    slug = models.SlugField(max_length=100)
    slug2 = models.SlugField(max_length=100)


# ######### Integration testing


class ThirdPartyModel(models.Model):
    name = models.CharField(max_length=20)


class ThirdPartyRegisteredModel(models.Model):
    name = models.CharField(max_length=20)


# ######### Manager testing

class FilteredManager(MultilingualManager):