Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateField for mongoengine absent in admin #1921

Open
malinich opened this issue Nov 6, 2019 · 0 comments
Open

DateField for mongoengine absent in admin #1921

malinich opened this issue Nov 6, 2019 · 0 comments

Comments

@malinich
Copy link

malinich commented Nov 6, 2019

prerequisites:

  • Flask-Admin 1.5.4
  • mongoengine 0.18.2

for example

class User(Document):
    last_active_action = DateField(required=True)
# admin.py
class UserView(ModelView):
        pass


admin.add_view(
    UserView(User, name="User", endpoint="admin-user", menu_class_name="User")
)

it will be crash, because this field will be no show

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant